Class: Hackle::EvaluationFlow::Decision
- Inherits:
-
Object
- Object
- Hackle::EvaluationFlow::Decision
- Includes:
- Hackle::EvaluationFlow
- Defined in:
- lib/hackle/internal/evaluation/flow/evaluation_flow.rb
Instance Attribute Summary collapse
- #evaluator ⇒ FlowEvaluator readonly
- #next_flow ⇒ EvaluationFlow readonly
Instance Method Summary collapse
- #evaluate(request, context) ⇒ Object
-
#initialize(evaluator, next_flow) ⇒ Decision
constructor
A new instance of Decision.
Methods included from Hackle::EvaluationFlow
Constructor Details
#initialize(evaluator, next_flow) ⇒ Decision
Returns a new instance of Decision.
39 40 41 42 |
# File 'lib/hackle/internal/evaluation/flow/evaluation_flow.rb', line 39 def initialize(evaluator, next_flow) @evaluator = evaluator @next_flow = next_flow end |
Instance Attribute Details
#evaluator ⇒ FlowEvaluator (readonly)
32 33 34 |
# File 'lib/hackle/internal/evaluation/flow/evaluation_flow.rb', line 32 def evaluator @evaluator end |
#next_flow ⇒ EvaluationFlow (readonly)
35 36 37 |
# File 'lib/hackle/internal/evaluation/flow/evaluation_flow.rb', line 35 def next_flow @next_flow end |
Instance Method Details
#evaluate(request, context) ⇒ Object
44 45 46 |
# File 'lib/hackle/internal/evaluation/flow/evaluation_flow.rb', line 44 def evaluate(request, context) evaluator.evaluate(request, context, next_flow) end |