Class: Substation::Processor::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/substation/processor/builder.rb

Overview

Supports building new Substation::Processor instances

Instance Method Summary collapse

Instance Method Details

#call(handler, failure_chain, observers) ⇒ Processor

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Build processor

Parameters:

Returns:



19
20
21
# File 'lib/substation/processor/builder.rb', line 19

def call(handler, failure_chain, observers)
  klass.new(name, handler, Config.new(executor, failure_chain, observers))
end