Class: Verdict::Storage::MemoryStorage
- Inherits:
-
BaseStorage
- Object
- BaseStorage
- Verdict::Storage::MemoryStorage
- Defined in:
- lib/verdict/storage/memory_storage.rb
Instance Attribute Summary collapse
-
#storage ⇒ Object
readonly
Returns the value of attribute storage.
Instance Method Summary collapse
-
#initialize ⇒ MemoryStorage
constructor
A new instance of MemoryStorage.
Methods inherited from BaseStorage
#cleanup, #remove_assignment, #retrieve_assignment, #retrieve_start_timestamp, #store_assignment, #store_start_timestamp
Constructor Details
#initialize ⇒ MemoryStorage
Returns a new instance of MemoryStorage.
6 7 8 |
# File 'lib/verdict/storage/memory_storage.rb', line 6 def initialize @storage = {} end |
Instance Attribute Details
#storage ⇒ Object (readonly)
Returns the value of attribute storage.
4 5 6 |
# File 'lib/verdict/storage/memory_storage.rb', line 4 def storage @storage end |