Class: Aggregates::CommandFilter
- Inherits:
-
CommandProcessor
- Object
- CommandProcessor
- Aggregates::CommandFilter
- 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
Methods included from MessageProcessor
#handle_message, included, #invoke_handlers, #with_message_handlers
Instance Method Details
#allow?(execution) ⇒ Boolean
10 11 12 |
# File 'lib/aggregates/command_filter.rb', line 10 def allow?(execution) process(execution).all? end |