Class: Aggregates::CommandProcessor

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

Overview

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

Instance Method Summary collapse

Methods included from WithAggregateHelpers

included

Methods included from MessageProcessor

#find_message_handlers, #handle_message, included

Instance Method Details

#process_command(command) ⇒ Object



9
10
11
# File 'lib/aggregates/command_processor.rb', line 9

def process_command(command)
  handle_message command
end