module Synapse::Command::CommandHandler
Mixin for an object capable of handling commands
Consider using the command handler mixin that uses the mapping DSL.
Public Instance Methods
handle(command, current_unit)
click to toggle source
Handles the given command
@param [CommandMessage] command @param [UnitOfWork] current_unit Current unit of work @return [Object] The result of handling the given command
# File lib/synapse/command/command_handler.rb, line 12 def handle(command, current_unit) raise NotImplementedError end