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



119
120
121
# File 'lib/business_flow/step.rb', line 119

def output_callable
  @output_callable
end

#outputsObject

Returns the value of attribute outputs



119
120
121
# File 'lib/business_flow/step.rb', line 119

def outputs
  @outputs
end

Instance Method Details

#result(step_result, parameter_source) ⇒ Object



120
121
122
# File 'lib/business_flow/step.rb', line 120

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