Class: WeatherGov::ObservationStationCollection

Inherits:
FeatureCollection show all
Defined in:
lib/weather_gov/observation_station_collection.rb

Instance Attribute Summary

Attributes inherited from Feature

#client

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from FeatureCollection

#features

Methods inherited from Feature

#context, #data, #geometry, #id, #initialize, #properties, #type

Constructor Details

This class inherits a constructor from WeatherGov::Feature

Class Method Details

.feature_classObject



8
9
10
# File 'lib/weather_gov/observation_station_collection.rb', line 8

def self.feature_class
  ObservationStation
end

Instance Method Details

#observation_stationsObject



16
17
18
# File 'lib/weather_gov/observation_station_collection.rb', line 16

def observation_stations
  data.fetch("observationStations")
end

#update_timeObject



12
13
14
# File 'lib/weather_gov/observation_station_collection.rb', line 12

def update_time
  @update_time ||= Time.parse(data.fetch("updated"))
end