Method: Weathercom::GeocodedLocation#initialize
- Defined in:
- lib/weathercom/geocoded_location.rb
#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 |