Class: WeatherSage::Weather::BaseObject

Inherits:
Object
  • Object
show all
Defined in:
lib/weather-sage/weather/base-object.rb

Overview

Base class for weather API objects.

Direct Known Subclasses

Point, Station

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cacheObject (readonly)

Returns the value of attribute cache.



5
6
7
# File 'lib/weather-sage/weather/base-object.rb', line 5

def cache
  @cache
end