Class: RulesEngine::RuleOutcome

Inherits:
Object
  • Object
show all
Defined in:
lib/rules_engine/rule_outcome.rb

Constant Summary collapse

OUTCOME_NEXT =
0
OUTCOME_STOP_SUCCESS =
1
OUTCOME_STOP_FAILURE =
2
OUTCOME_START_PIPELINE =
3

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(outcome, pipeline_code = nil) ⇒ RuleOutcome

Returns a new instance of RuleOutcome.



4
5
6
7
# File 'lib/rules_engine/rule_outcome.rb', line 4

def initialize(outcome, pipeline_code = nil)
  @outcome = outcome
  @pipeline_code = pipeline_code
end

Instance Attribute Details

#outcomeObject

Returns the value of attribute outcome.



14
15
16
# File 'lib/rules_engine/rule_outcome.rb', line 14

def outcome
  @outcome
end

#pipeline_codeObject

Returns the value of attribute pipeline_code.



15
16
17
# File 'lib/rules_engine/rule_outcome.rb', line 15

def pipeline_code
  @pipeline_code
end