Class: Aggregates::CommandProcessor

Inherits:
Object
  • Object
show all
Includes:
MessageProcessor
Defined in:
lib/aggregates/command_processor.rb

Overview

A command processor is a type that correlates commands to operations on an aggregate root.

Direct Known Subclasses

CommandFilter

Instance Method Summary collapse

Methods included from MessageProcessor

#handle_message, included, #invoke_handlers, #with_message_handlers

Instance Method Details

#process(execution) ⇒ Object



12
13
14
# File 'lib/aggregates/command_processor.rb', line 12

def process(execution)
  execution.execute_with(self)
end