Module: Forecast::IO::Cache

Defined in:
lib/forecast_io/cache.rb,
lib/forecast_io/cache/app.rb,
lib/forecast_io/cache/store.rb,
lib/forecast_io/cache/version.rb,
lib/forecast_io/cache/forecast.rb,
lib/forecast_io/cache/generate.rb,
lib/forecast_io/cache/configuration.rb,
lib/forecast_io/cache/forecast_data.rb

Defined Under Namespace

Classes: App, Configuration, Forecast, ForecastData, Generate, Store

Constant Summary collapse

VERSION =
"2.0.0"

Class Method Summary collapse

Class Method Details

.call(env) ⇒ Object



25
26
27
28
# File 'lib/forecast_io/cache.rb', line 25

def self.call env
  initialize!
  @app.call env
end

.configurationObject



17
18
19
# File 'lib/forecast_io/cache.rb', line 17

def self.configuration
  @config ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



13
14
15
# File 'lib/forecast_io/cache.rb', line 13

def self.configure
  yield configuration
end

.initialize!Object



21
22
23
# File 'lib/forecast_io/cache.rb', line 21

def self.initialize!
  @app ||= App.new
end