Method: OpenWeatherClient::Weather#get
- Defined in:
- lib/open_weather_client/weather.rb
#get ⇒ Object
get the weather according to the specified parameters
41 42 43 44 45 |
# File 'lib/open_weather_client/weather.rb', line 41 def get OpenWeatherClient.cache.get(lat: lat, lon: lon, time: time) rescue KeyError OpenWeatherClient::Request.get(lat: lat, lon: lon, time: time) end |