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_WORKFLOW =
3
Instance Attribute Summary collapse
-
#outcome ⇒ Object
Returns the value of attribute outcome.
-
#workflow_code ⇒ Object
Returns the value of attribute workflow_code.
Instance Method Summary collapse
-
#initialize(outcome, workflow_code = nil) ⇒ RuleOutcome
constructor
A new instance of RuleOutcome.
Constructor Details
#initialize(outcome, workflow_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, workflow_code = nil) @outcome = outcome @workflow_code = workflow_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 |
#workflow_code ⇒ Object
Returns the value of attribute workflow_code.
15 16 17 |
# File 'lib/rules_engine/rule_outcome.rb', line 15 def workflow_code @workflow_code end |