Class: ActiveInteractor::Organizer::Base
- Extended by:
- Callbacks::ClassMethods, Organize::ClassMethods, Perform::ClassMethods
- Defined in:
- lib/active_interactor/organizer/base.rb
Overview
The base organizer class all organizers should inherit from.
Class Attribute Summary collapse
-
.parallel ⇒ Boolean
extended
from Perform::ClassMethods
readonly
If
true
the organizer will call #perform on its .organized interactors in parallel.
Class Method Summary collapse
-
.after_all_perform(*filters, &block) ⇒ Object
extended
from Callbacks::ClassMethods
Define a callback to call after all organized interactors' #perform methods have been called.
-
.after_each_perform(*filters, &block) ⇒ Object
extended
from Callbacks::ClassMethods
Define a callback to call after each organized interactor's #perform method has been called.
-
.around_all_perform(*filters, &block) ⇒ Object
extended
from Callbacks::ClassMethods
Define a callback to call around all organized interactors' #perform method calls.
-
.around_each_perform(*filters, &block) ⇒ Object
extended
from Callbacks::ClassMethods
Define a callback to call around each organized interactor's #perform method call.
-
.before_all_perform(*filters, &block) ⇒ Object
extended
from Callbacks::ClassMethods
Define a callback to call before all organized interactors' #perform methods have been called.
-
.before_each_perform(*filters, &block) ⇒ Object
extended
from Callbacks::ClassMethods
Define a callback to call before each organized interactor's #perform method has been called.
-
.organize(*interactors, &block) ⇒ InteractorInterfaceCollection
extended
from Organize::ClassMethods
Organize interactors to be called by the organizer.
-
.organized ⇒ InteractorInterfaceCollection
extended
from Organize::ClassMethods
An organized collection of interactors.
-
.perform_in_parallel ⇒ Object
extended
from Perform::ClassMethods
Set Perform::ClassMethods.parallel to
true
.
Instance Method Summary collapse
-
#perform ⇒ Object
included
from Perform
Call the .organized interactors #perform.
- #run_deferred_after_perform_callbacks_on_children ⇒ Object included from Perform
Class Attribute Details
.parallel ⇒ Boolean (readonly) Originally defined in module Perform::ClassMethods
If true
the organizer will call #perform on its
.organized interactors in parallel.
An organizer will have parallel false
by default.
Class Method Details
.after_all_perform(*filters, &block) ⇒ Object Originally defined in module Callbacks::ClassMethods
Define a callback to call after all organized interactors' #perform methods have been called.
.after_each_perform(*filters, &block) ⇒ Object Originally defined in module Callbacks::ClassMethods
Define a callback to call after each organized interactor's #perform method has been called.
.around_all_perform(*filters, &block) ⇒ Object Originally defined in module Callbacks::ClassMethods
Define a callback to call around all organized interactors' #perform method calls.
.around_each_perform(*filters, &block) ⇒ Object Originally defined in module Callbacks::ClassMethods
Define a callback to call around each organized interactor's #perform method call.
.before_all_perform(*filters, &block) ⇒ Object Originally defined in module Callbacks::ClassMethods
Define a callback to call before all organized interactors' #perform methods have been called.
.before_each_perform(*filters, &block) ⇒ Object Originally defined in module Callbacks::ClassMethods
Define a callback to call before each organized interactor's #perform method has been called.
.organize(*interactors, &block) ⇒ InteractorInterfaceCollection Originally defined in module Organize::ClassMethods
Organize interactors to be called by the organizer. A block will be evaluated on the InteractorInterfaceCollection if a block is given.
.organized ⇒ InteractorInterfaceCollection Originally defined in module Organize::ClassMethods
An organized collection of interactors
.perform_in_parallel ⇒ Object Originally defined in module Perform::ClassMethods
Set parallel to true
Instance Method Details
#perform ⇒ Object Originally defined in module Perform
Call the .organized interactors #perform. An organizer is expected not to define its own #perform method in favor of this default implementation.