Class: PartitionGardener::MemoryRunRecordStore

Inherits:
Object
  • Object
show all
Defined in:
lib/partition_gardener/memory_run_record_store.rb

Instance Method Summary collapse

Constructor Details

#initializeMemoryRunRecordStore

Returns a new instance of MemoryRunRecordStore.



3
4
5
# File 'lib/partition_gardener/memory_run_record_store.rb', line 3

def initialize
  @records = {}
end

Instance Method Details

#clear(table_name) ⇒ Object



15
16
17
# File 'lib/partition_gardener/memory_run_record_store.rb', line 15

def clear(table_name)
  @records.delete(table_name)
end

#load(table_name) ⇒ Object



7
8
9
# File 'lib/partition_gardener/memory_run_record_store.rb', line 7

def load(table_name)
  @records[table_name]
end

#save(table_name, attributes) ⇒ Object



11
12
13
# File 'lib/partition_gardener/memory_run_record_store.rb', line 11

def save(table_name, attributes)
  @records[table_name] = attributes
end