Class: Cascade::StatisticsStores::AbstractStore

Inherits:
Object
  • Object
show all
Defined in:
lib/cascade/statistics_stores/abstract_store.rb

Direct Known Subclasses

ArrayStore, CounterStore

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#storeObject (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

#updateObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/cascade/statistics_stores/abstract_store.rb', line 12

def update(*)
  raise NotImplementedError
end