Class: Cascade::StatisticsStores::CounterStore
- Inherits:
-
AbstractStore
- Object
- AbstractStore
- Cascade::StatisticsStores::CounterStore
- Defined in:
- lib/cascade/statistics_stores/counter_store.rb
Instance Attribute Summary
Attributes inherited from AbstractStore
Instance Method Summary collapse
Methods inherited from AbstractStore
Constructor Details
This class inherits a constructor from Cascade::StatisticsStores::AbstractStore
Instance Method Details
#update(value = nil) ⇒ Object
6 7 8 9 |
# File 'lib/cascade/statistics_stores/counter_store.rb', line 6 def update(value = nil) value ||= 1 @store += value end |