Class: Forecast::IO::Cache::Forecast
- Inherits:
-
Object
- Object
- Forecast::IO::Cache::Forecast
- Defined in:
- lib/forecast_io/cache/forecast.rb
Instance Method Summary collapse
- #for(lat, lon, time) ⇒ Object
-
#initialize(cache = Store.new, generate = Generate) ⇒ Forecast
constructor
A new instance of Forecast.
Constructor Details
Instance Method Details
#for(lat, lon, time) ⇒ Object
10 11 12 |
# File 'lib/forecast_io/cache/forecast.rb', line 10 def for lat, lon, time cached(lat, lon, time) or fetch_and_store(lat, lon, time) end |