Class: RulesEngine::RuleOutcome
- Inherits:
-
Object
- Object
- RulesEngine::RuleOutcome
- 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
-
#outcome ⇒ Object
Returns the value of attribute outcome.
-
#pipeline_code ⇒ Object
Returns the value of attribute pipeline_code.
Instance Method Summary collapse
-
#initialize(outcome, pipeline_code = nil) ⇒ RuleOutcome
constructor
A new instance of RuleOutcome.
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
#outcome ⇒ Object
Returns the value of attribute outcome.
14 15 16 |
# File 'lib/rules_engine/rule_outcome.rb', line 14 def outcome @outcome end |
#pipeline_code ⇒ Object
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 |