Class: OpenWeatherMap::Geocode
- Inherits:
-
Object
- Object
- OpenWeatherMap::Geocode
- Defined in:
- lib/open_weather_map.rb
Instance Method Summary collapse
-
#initialize(lat, lon) ⇒ Geocode
constructor
A new instance of Geocode.
Constructor Details
#initialize(lat, lon) ⇒ Geocode
Returns a new instance of Geocode.
33 34 35 36 |
# File 'lib/open_weather_map.rb', line 33 def initialize(lat, lon) params = { lat: lat, lon: lon } request params end |