Class: Interpipe::Pipe

Inherits:
Organizer show all
Defined in:
lib/interpipe/pipe.rb

Instance Method Summary collapse

Methods inherited from Organizer

[], interactors, #interactors, interactors=

Methods included from Interactor

included, #initialize, #setup

Instance Method Details

#perform(**options) ⇒ Object


5
6
7
8
9
# File 'lib/interpipe/pipe.rb', line 5

def perform(**options)
  @results = interactors.inject(options) do |result, interactor|
    interactor.perform(result).results
  end
end