class WeatherGov::Identifier::Point

Public Class Methods

base_uri() click to toggle source
Calls superclass method WeatherGov::Identifier::base_uri
# File lib/weather_gov/identifier/point.rb, line 8
def self.base_uri
  URI.join(super, "/points/").to_s
end

Public Instance Methods

lat() click to toggle source
# File lib/weather_gov/identifier/point.rb, line 12
def lat
  @lat ||= id.split(",")[0]
end
lon() click to toggle source
# File lib/weather_gov/identifier/point.rb, line 16
def lon
  @lon ||= id.split(",")[1]
end