Class: WeatherSage::Weather::BaseObject
- Inherits:
-
Object
- Object
- WeatherSage::Weather::BaseObject
- Defined in:
- lib/weather-sage/weather/base-object.rb
Overview
Base class for weather API objects.
Instance Attribute Summary collapse
-
#cache ⇒ Object
readonly
Returns the value of attribute cache.
Instance Method Summary collapse
-
#initialize(ctx) ⇒ BaseObject
constructor
Create a new weather object.
Constructor Details
#initialize(ctx) ⇒ BaseObject
Create a new weather object.
10 11 12 |
# File 'lib/weather-sage/weather/base-object.rb', line 10 def initialize(ctx) @ctx = ctx end |
Instance Attribute Details
#cache ⇒ Object (readonly)
Returns the value of attribute cache.
5 6 7 |
# File 'lib/weather-sage/weather/base-object.rb', line 5 def cache @cache end |