Class: BusinessFlow::Step::ResultFactory

Inherits:
Struct
  • Object
show all
Defined in:
lib/business_flow/step.rb

Overview

Manage creating results for our step

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#output_callableObject

Returns the value of attribute output_callable

Returns:

  • (Object)

    the current value of output_callable



105
106
107
# File 'lib/business_flow/step.rb', line 105

def output_callable
  @output_callable
end

#outputsObject

Returns the value of attribute outputs

Returns:

  • (Object)

    the current value of outputs



105
106
107
# File 'lib/business_flow/step.rb', line 105

def outputs
  @outputs
end

Instance Method Details

#result(step_result) ⇒ Object



106
107
108
# File 'lib/business_flow/step.rb', line 106

def result(step_result)
  Result.new(step_result, outputs, output_callable)
end