Class: Weathercom::GeocodedLocation

Inherits:
Location
  • Object
show all
Defined in:
lib/weathercom/geocoded_location.rb

Instance Attribute Summary

Attributes inherited from Location

#client, #lat, #lng

Instance Method Summary collapse

Methods inherited from Location

#current_observation, #daily_forecasts_10, #daily_forecasts_5, #hourly_forecasts_240, #wwir_forecast

Constructor Details

#initialize(info, client) ⇒ GeocodedLocation

Returns a new instance of GeocodedLocation.



4
5
6
7
8
# File 'lib/weathercom/geocoded_location.rb', line 4

def initialize(info, client)
  info = info.dup
  super(info.delete('latitude'), info.delete('longitude'), client)
  @info = info.freeze
end