Class: Verdict::Storage::MemoryStorage

Inherits:
BaseStorage show all
Defined in:
lib/verdict/storage/memory_storage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseStorage

#cleanup, #remove_assignment, #retrieve_assignment, #retrieve_start_timestamp, #store_assignment, #store_start_timestamp

Constructor Details

#initializeMemoryStorage

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

#storageObject (readonly)

Returns the value of attribute storage.



4
5
6
# File 'lib/verdict/storage/memory_storage.rb', line 4

def storage
  @storage
end