Class: Hackle::EvaluationFlow::Decision

Inherits:
Object
  • Object
show all
Includes:
Hackle::EvaluationFlow
Defined in:
lib/hackle/internal/evaluation/flow/evaluation_flow.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Hackle::EvaluationFlow

create

Constructor Details

#initialize(evaluator, next_flow) ⇒ Decision

Returns a new instance of Decision.

Parameters:



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

#evaluatorFlowEvaluator (readonly)

Returns:



32
33
34
# File 'lib/hackle/internal/evaluation/flow/evaluation_flow.rb', line 32

def evaluator
  @evaluator
end

#next_flowEvaluationFlow (readonly)

Returns:



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