Class: WeatherGov::RelativeLocation
- Inherits:
-
Feature
- Object
- Feature
- WeatherGov::RelativeLocation
show all
- Defined in:
- lib/weather_gov/relative_location.rb
Instance Attribute Summary
Attributes inherited from Feature
#client
Instance Method Summary
collapse
Methods inherited from Feature
#context, #data, #geometry, #id, #initialize, #properties, #type
Instance Method Details
#bearing ⇒ Object
19
20
21
|
# File 'lib/weather_gov/relative_location.rb', line 19
def bearing
properties.fetch("bearing")
end
|
#city ⇒ Object
7
8
9
|
# File 'lib/weather_gov/relative_location.rb', line 7
def city
properties.fetch("city")
end
|
#distance ⇒ Object
15
16
17
|
# File 'lib/weather_gov/relative_location.rb', line 15
def distance
properties.fetch("distance")
end
|
#state ⇒ Object
11
12
13
|
# File 'lib/weather_gov/relative_location.rb', line 11
def state
properties.fetch("state")
end
|