Class: OpenWeatherMap::Geocode

Inherits:
Base
  • Object
show all
Defined in:
lib/open_weather_map.rb

Instance Method Summary collapse

Methods inherited from Base

#cond, #temp_max, #temp_max_celsius, #temp_min, #temp_min_celsius

Constructor Details

#initialize(lat, lon) ⇒ Geocode

Returns a new instance of Geocode.



14
15
16
17
# File 'lib/open_weather_map.rb', line 14

def initialize(lat, lon)
  params = { lat: lat, lon: lon }
  @response = request params
end