Class: WeatherGov::ObservationStationCollection
Instance Attribute Summary
Attributes inherited from Feature
#client
Class Method Summary
collapse
Instance Method Summary
collapse
#features
Methods inherited from Feature
#context, #data, #geometry, #id, #initialize, #properties, #type
Class Method Details
.feature_class ⇒ Object
8
9
10
|
# File 'lib/weather_gov/observation_station_collection.rb', line 8
def self.feature_class
ObservationStation
end
|
Instance Method Details
#observation_stations ⇒ Object
16
17
18
|
# File 'lib/weather_gov/observation_station_collection.rb', line 16
def observation_stations
data.fetch("observationStations")
end
|
#update_time ⇒ Object
12
13
14
|
# File 'lib/weather_gov/observation_station_collection.rb', line 12
def update_time
@update_time ||= Time.parse(data.fetch("updated"))
end
|