Module: Interactor::Organizer
Overview
Public: Interactor::Organizer methods. Because Interactor::Organizer is a module, custom Interactor::Organizer classes should include Interactor::Organizer rather than inherit from it.
Examples
class MyOrganizer
include Interactor::Organizer
organizer InteractorOne, InteractorTwo
end
Instance Method Summary collapse
Methods included from Interactor
Instance Method Details
#call ⇒ Object
63 64 65 66 67 |
# File 'lib/interactor/organizer.rb', line 63 def call self.class.organized.inject(context) do |ctx, interactor| interactor.call!(ctx) end end |