Class: Igniter::Embed::Contractable::Adapters::MemoryStore

Inherits:
Object
  • Object
show all
Defined in:
lib/igniter/embed/contractable/adapters.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMemoryStore

Returns a new instance of MemoryStore.



22
23
24
# File 'lib/igniter/embed/contractable/adapters.rb', line 22

def initialize
  @observations = []
end

Instance Attribute Details

#observationsObject (readonly)

Returns the value of attribute observations.



20
21
22
# File 'lib/igniter/embed/contractable/adapters.rb', line 20

def observations
  @observations
end

Instance Method Details

#record(observation) ⇒ Object



26
27
28
# File 'lib/igniter/embed/contractable/adapters.rb', line 26

def record(observation)
  observations << observation
end