Class: WeatherGov::Identifier::Point
Constant Summary
TYPES
Instance Attribute Summary
#uri
Class Method Summary
collapse
Instance Method Summary
collapse
#id, #initialize, parse, #to_s
Class Method Details
.base_uri ⇒ Object
8
9
10
|
# File 'lib/weather_gov/identifier/point.rb', line 8
def self.base_uri
URI.join(super, "/points/").to_s
end
|
Instance Method Details
#lat ⇒ Object
12
13
14
|
# File 'lib/weather_gov/identifier/point.rb', line 12
def lat
@lat ||= id.split(",")[0]
end
|
#lon ⇒ Object
16
17
18
|
# File 'lib/weather_gov/identifier/point.rb', line 16
def lon
@lon ||= id.split(",")[1]
end
|