Class: Cascade::StatisticsStores::CounterStore

Inherits:
AbstractStore show all
Defined in:
lib/cascade/statistics_stores/counter_store.rb

Instance Attribute Summary

Attributes inherited from AbstractStore

#store

Instance Method Summary collapse

Methods inherited from AbstractStore

#initialize

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