class WeatherGov::Office
Public Instance Methods
address()
click to toggle source
# File lib/weather_gov/office.rb, line 12 def address @address ||= Address.new(data.fetch("address")) end
approved_observation_station_ids()
click to toggle source
# File lib/weather_gov/office.rb, line 64 def approved_observation_station_ids data.fetch("approvedObservationStations", []).map { |uri| Identifier::Station.new(uri).id } end
approved_observation_stations()
click to toggle source
# File lib/weather_gov/office.rb, line 60 def approved_observation_stations data.fetch("approvedObservationStations", []).map { |uri| client.station(uri: uri, value: uri) } end
email()
click to toggle source
# File lib/weather_gov/office.rb, line 24 def email data.fetch("email") end
fax()
click to toggle source
# File lib/weather_gov/office.rb, line 20 def fax data.fetch("faxNumber") end
name()
click to toggle source
# File lib/weather_gov/office.rb, line 8 def name data.fetch("name") end
nws_region()
click to toggle source
# File lib/weather_gov/office.rb, line 28 def nws_region data.fetch("nwsRegion") end
parent_organization()
click to toggle source
# File lib/weather_gov/office.rb, line 32 def parent_organization data.fetch("parentOrganization") end
responsible_counties()
click to toggle source
# File lib/weather_gov/office.rb, line 36 def responsible_counties data.fetch("responsibleCounties", []) end
responsible_county_ids()
click to toggle source
# File lib/weather_gov/office.rb, line 40 def responsible_county_ids data.fetch("responsibleCounties", []).map { |uri| Identifier::CountyZone.new(uri).id } end
responsible_fire_zone_ids()
click to toggle source
# File lib/weather_gov/office.rb, line 56 def responsible_fire_zone_ids data.fetch("responsibleFireZones", []).map { |uri| Identifier::FireZone.new(uri).id } end
responsible_fire_zones()
click to toggle source
# File lib/weather_gov/office.rb, line 52 def responsible_fire_zones data.fetch("responsibleFireZones", []) end
responsible_forecast_zone_ids()
click to toggle source
# File lib/weather_gov/office.rb, line 48 def responsible_forecast_zone_ids data.fetch("responsibleForecastZones", []).map { |uri| Identifier::ForecastZone.new(uri).id } end
responsible_forecast_zones()
click to toggle source
# File lib/weather_gov/office.rb, line 44 def responsible_forecast_zones data.fetch("responsibleForecastZones", []) end
telephone()
click to toggle source
# File lib/weather_gov/office.rb, line 16 def telephone data.fetch("telephone") end