Class: WeatherGov::ObservationStation
- Inherits:
-
Feature
- Object
- Feature
- WeatherGov::ObservationStation
show all
- Defined in:
- lib/weather_gov/observation_station.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
#elevation ⇒ Object
23
24
25
|
# File 'lib/weather_gov/observation_station.rb', line 23
def elevation
properties.fetch("elevation")
end
|
#fire_weather_zone ⇒ Object
11
12
13
|
# File 'lib/weather_gov/observation_station.rb', line 11
def fire_weather_zone
@fire_weather_zone ||= Identifier::FireZone.new(properties.fetch("fireWeatherZone"))
end
|
#forecast_zone ⇒ Object
7
8
9
|
# File 'lib/weather_gov/observation_station.rb', line 7
def forecast_zone
@forecast_zone ||= Identifier::ForecastZone.new(properties.fetch("forecast"))
end
|
#name ⇒ Object
19
20
21
|
# File 'lib/weather_gov/observation_station.rb', line 19
def name
properties.fetch("name")
end
|
#station_identifier ⇒ Object
15
16
17
|
# File 'lib/weather_gov/observation_station.rb', line 15
def station_identifier
properties.fetch("stationIdentifier")
end
|