Class: EventSourcing::Application::Actor::Reference

Inherits:
Concurrent::Actor::Reference
  • Object
show all
Defined in:
lib/event_sourcing/application/actor/reference.rb

Instance Method Summary collapse

Instance Method Details

#execute_command(command) ⇒ Object



8
9
10
# File 'lib/event_sourcing/application/actor/reference.rb', line 8

def execute_command(command)
  command_bus.tell(command)
end

#terminate!Object



12
13
14
# File 'lib/event_sourcing/application/actor/reference.rb', line 12

def terminate!
  tell(:terminate!)
end