Module: Foobara::CommandPatternImplementation

Includes:
CommandPatternImplementation::Concerns::Callbacks, CommandPatternImplementation::Concerns::CommandData, CommandPatternImplementation::Concerns::DomainMappers, CommandPatternImplementation::Concerns::Errors, CommandPatternImplementation::Concerns::ErrorsType, CommandPatternImplementation::Concerns::Inputs, CommandPatternImplementation::Concerns::InputsType, CommandPatternImplementation::Concerns::Namespace, CommandPatternImplementation::Concerns::Reflection, CommandPatternImplementation::Concerns::Result, CommandPatternImplementation::Concerns::ResultType, CommandPatternImplementation::Concerns::Runtime, CommandPatternImplementation::Concerns::StateMachine, CommandPatternImplementation::Concerns::Subcommands, Concern, TruncatedInspect
Included in:
Command, DomainMapper
Defined in:
foobara-0.6.1/projects/command/src/command_pattern_implementation.rb,
foobara-0.6.1/projects/command/src/command_pattern_implementation/concerns/errors.rb,
foobara-0.6.1/projects/command/src/command_pattern_implementation/concerns/inputs.rb,
foobara-0.6.1/projects/command/src/command_pattern_implementation/concerns/result.rb,
foobara-0.6.1/projects/command/src/command_pattern_implementation/concerns/runtime.rb,
foobara-0.6.1/projects/command/src/command_pattern_implementation/concerns/callbacks.rb,
foobara-0.6.1/projects/command/src/command_pattern_implementation/concerns/namespace.rb,
foobara-0.6.1/projects/command/src/command_pattern_implementation/concerns/reflection.rb,
foobara-0.6.1/projects/command/src/command_pattern_implementation/concerns/errors_type.rb,
foobara-0.6.1/projects/command/src/command_pattern_implementation/concerns/inputs_type.rb,
foobara-0.6.1/projects/command/src/command_pattern_implementation/concerns/result_type.rb,
foobara-0.6.1/projects/command/src/command_pattern_implementation/concerns/subcommands.rb,
foobara-0.6.1/projects/command/src/command_pattern_implementation/concerns/command_data.rb,
foobara-0.6.1/projects/command/src/command_pattern_implementation/concerns/state_machine.rb,
foobara-0.6.1/projects/command/src/command_pattern_implementation/concerns/domain_mappers.rb,
foobara-0.6.1/projects/entities_plumbing/src/extensions/command_pattern_implementation/concerns/runtime.rb,
foobara-0.6.1/projects/entities_plumbing/src/extensions/command_pattern_implementation/concerns/entities.rb,
foobara-0.6.1/projects/entities_plumbing/src/extensions/command_pattern_implementation/concerns/transactions.rb,
foobara-0.6.1/projects/entities_plumbing/src/extensions/command_pattern_implementation/concerns/entity_inputs.rb,
foobara-0.6.1/projects/model_plumbing/src/extensions/command_pattern_implementation/concerns/model_inputs_type.rb,
foobara-0.6.1/projects/entities_plumbing/src/extensions/command_pattern_implementation/concerns/entity_reflection.rb,
foobara-0.6.1/projects/entities_plumbing/src/extensions/command_pattern_implementation/concerns/entity_errors_type.rb

Overview

We distinguish between "Foobara Command" and the "command pattern".

A "Foobara Command" encapsulates a high-level business operation and serves as the public interface to its domain.

The "command pattern" encapsulates an operation behind an interface that supports .new(inputs), #run which returns an outcome which implements #success?, #result, and #errors.

All "Foobara Command"s implement the "command pattern" but not all implementations of the "command pattern" are "Foobara Command"s. An example is DomainMappers. They happen to use the "command pattern" since it is a good fit but has nothing to do with a public interface high-level business operation encapsulation like a "Foobara Command" does.

Defined Under Namespace

Modules: Concerns Classes: BadCommandInputsError

Constant Summary

Constants included from TruncatedInspect

TruncatedInspect::MAX_LENGTH

Method Summary

Methods included from TruncatedInspect

#inspect, truncating

Methods included from Concern

foobara_class_methods_module_for, foobara_concern?, included