Class: WeatherSage::Context
- Inherits:
-
Object
- Object
- WeatherSage::Context
- Defined in:
- lib/weather-sage/context.rb
Overview
Minimal context containing a logger and HTTP request cache.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#log ⇒ Object
readonly
Returns the value of attribute log.
Instance Method Summary collapse
-
#initialize(log, cache) ⇒ Context
constructor
Create context from given
logandcache.
Constructor Details
#initialize(log, cache) ⇒ Context
Create context from given log and cache.
10 11 12 |
# File 'lib/weather-sage/context.rb', line 10 def initialize(log, cache) @log, @cache = log, cache end |
Instance Attribute Details
#log ⇒ Object (readonly)
Returns the value of attribute log.
5 6 7 |
# File 'lib/weather-sage/context.rb', line 5 def log @log end |