Class: Cascade::StatisticsStores::AbstractStore
- Inherits:
-
Object
- Object
- Cascade::StatisticsStores::AbstractStore
- Defined in:
- lib/cascade/statistics_stores/abstract_store.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#store ⇒ Object
readonly
Returns the value of attribute store.
Instance Method Summary collapse
-
#initialize(default_value = nil) ⇒ AbstractStore
constructor
A new instance of AbstractStore.
- #update ⇒ Object
Constructor Details
#initialize(default_value = nil) ⇒ AbstractStore
Returns a new instance of AbstractStore.
6 7 8 |
# File 'lib/cascade/statistics_stores/abstract_store.rb', line 6 def initialize(default_value = nil) @store = default_value || initialize_value end |
Instance Attribute Details
#store ⇒ Object (readonly)
Returns the value of attribute store.
10 11 12 |
# File 'lib/cascade/statistics_stores/abstract_store.rb', line 10 def store @store end |
Instance Method Details
#update ⇒ Object
12 13 14 |
# File 'lib/cascade/statistics_stores/abstract_store.rb', line 12 def update(*) raise NotImplementedError end |