Class: Aggregates::CommandFilter

Inherits:
CommandProcessor show all
Defined in:
lib/aggregates/command_filter.rb

Overview

Applies filters to commands to decouple filtering logic from the CommandProcessor.

Instance Method Summary collapse

Methods inherited from CommandProcessor

#process

Methods included from MessageProcessor

#handle_message, included, #invoke_handlers, #with_message_handlers

Instance Method Details

#allow?(execution) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/aggregates/command_filter.rb', line 10

def allow?(execution)
  process(execution).all?
end