Class: WeatherGov::RelativeLocation

Inherits:
Feature
  • Object
show all
Defined in:
lib/weather_gov/relative_location.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

#bearingObject



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

def bearing
  properties.fetch("bearing")
end

#cityObject



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

def city
  properties.fetch("city")
end

#distanceObject



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

def distance
  properties.fetch("distance")
end

#stateObject



11
12
13
# File 'lib/weather_gov/relative_location.rb', line 11

def state
  properties.fetch("state")
end