Class: BusinessFlow::Step::ResultFactory
- Inherits:
 - 
      Struct
      
        
- Object
 - Struct
 - BusinessFlow::Step::ResultFactory
 
 
- Defined in:
 - lib/business_flow/step.rb
 
Overview
Manage creating results for our step
Instance Attribute Summary collapse
- 
  
    
      #default_output  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute default_output.
 - 
  
    
      #output_callable  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute output_callable.
 - 
  
    
      #outputs  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute outputs.
 
Instance Method Summary collapse
Instance Attribute Details
#default_output ⇒ Object
Returns the value of attribute default_output
      124 125 126  | 
    
      # File 'lib/business_flow/step.rb', line 124 def default_output @default_output end  | 
  
#output_callable ⇒ Object
Returns the value of attribute output_callable
      124 125 126  | 
    
      # File 'lib/business_flow/step.rb', line 124 def output_callable @output_callable end  | 
  
#outputs ⇒ Object
Returns the value of attribute outputs
      124 125 126  | 
    
      # File 'lib/business_flow/step.rb', line 124 def outputs @outputs end  | 
  
Instance Method Details
#result(step_result, parameter_source) ⇒ Object
      125 126 127 128 129 130 131 132 133 134 135  | 
    
      # File 'lib/business_flow/step.rb', line 125 def result(step_result, parameter_source) callable = callable_for(step_result) output = if callable parameter_source.instance_exec(step_result, &callable) else step_result end Result.new(step_result, outputs, output) end  |