Module: InstanceHandler

Defined in:
lib/handlers/instance_handler.rb

Instance Method Summary collapse

Instance Method Details

#absorb(instance) ⇒ Object



10
11
12
# File 'lib/handlers/instance_handler.rb', line 10

def absorb(instance)
  @memory_persister.absorb instance
end

#initialize(options = {memory: MemoryPersister}) ⇒ Object



5
6
7
8
# File 'lib/handlers/instance_handler.rb', line 5

def initialize(options = {memory: MemoryPersister})
  load_instances
  @memory_persister = options[:memory].new(@klass_list)
end