Class: Cure::Strategy::History::HistoryCache

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/cure/strategy/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHistoryCache

Returns a new instance of HistoryCache.



35
36
37
# File 'lib/cure/strategy/base.rb', line 35

def initialize
  @history_cache = {}
end

Instance Attribute Details

#history_cacheObject (readonly)

Returns the value of attribute history_cache.



33
34
35
# File 'lib/cure/strategy/base.rb', line 33

def history_cache
  @history_cache
end

Instance Method Details

#resetObject



39
40
41
# File 'lib/cure/strategy/base.rb', line 39

def reset
  @history_cache = {}
end