class EventSourcing::Application::Actor::Reference

Public Instance Methods

execute_command(command) click to toggle source
# File lib/event_sourcing/application/actor/reference.rb, line 8
def execute_command(command)
  command_bus.tell(command)
end
terminate!() click to toggle source
# File lib/event_sourcing/application/actor/reference.rb, line 12
def terminate!
  tell(:terminate!)
end

Private Instance Methods

command_bus() click to toggle source
# File lib/event_sourcing/application/actor/reference.rb, line 17
def command_bus
  @command_bus ||= ask!(:get_command_bus)
end