Class: Barometer::Noaa::Response::CurrentLocation

Inherits:
WeatherService::Response::Location
  • Object
show all
Defined in:
lib/barometer/noaa/response/current_location.rb

Instance Method Summary collapse

Constructor Details

#initialize(payload, response) ⇒ CurrentLocation

Returns a new instance of CurrentLocation.



5
6
7
8
# File 'lib/barometer/noaa/response/current_location.rb', line 5

def initialize(payload, response)
  super(payload)
  @location = response.location
end