Class: WeatherGov::ObservationStation

Inherits:
Feature
  • Object
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

Constructor Details

This class inherits a constructor from WeatherGov::Feature

Instance Method Details

#elevationObject



23
24
25
# File 'lib/weather_gov/observation_station.rb', line 23

def elevation
  properties.fetch("elevation")
end

#fire_weather_zoneObject



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_zoneObject



7
8
9
# File 'lib/weather_gov/observation_station.rb', line 7

def forecast_zone
  @forecast_zone ||= Identifier::ForecastZone.new(properties.fetch("forecast"))
end

#nameObject



19
20
21
# File 'lib/weather_gov/observation_station.rb', line 19

def name
  properties.fetch("name")
end

#station_identifierObject



15
16
17
# File 'lib/weather_gov/observation_station.rb', line 15

def station_identifier
  properties.fetch("stationIdentifier")
end