Class: Igniter::Embed::Contractable::Adapters::MemoryStore
- Inherits:
-
Object
- Object
- Igniter::Embed::Contractable::Adapters::MemoryStore
- Defined in:
- lib/igniter/embed/contractable/adapters.rb
Instance Attribute Summary collapse
-
#observations ⇒ Object
readonly
Returns the value of attribute observations.
Instance Method Summary collapse
-
#initialize ⇒ MemoryStore
constructor
A new instance of MemoryStore.
- #record(observation) ⇒ Object
Constructor Details
#initialize ⇒ MemoryStore
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
#observations ⇒ Object (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 |