Class: RulesEngine::Rule::Outcome
- Inherits:
-
Object
- Object
- RulesEngine::Rule::Outcome
- Defined in:
- lib/rules_engine/rule/outcome.rb
Constant Summary collapse
- NEXT =
0
- STOP_SUCCESS =
1
- STOP_FAILURE =
2
- START_WORKFLOW =
3
Instance Attribute Summary collapse
-
#outcome ⇒ Object
Returns the value of attribute outcome.
-
#title ⇒ Object
Returns the value of attribute title.
-
#workflow_code ⇒ Object
Returns the value of attribute workflow_code.
Instance Method Summary collapse
-
#initialize(outcome, workflow_code = nil) ⇒ Outcome
constructor
A new instance of Outcome.
Constructor Details
#initialize(outcome, workflow_code = nil) ⇒ Outcome
Returns a new instance of Outcome.
5 6 7 8 |
# File 'lib/rules_engine/rule/outcome.rb', line 5 def initialize(outcome, workflow_code = nil) @outcome = outcome @workflow_code = workflow_code end |
Instance Attribute Details
#outcome ⇒ Object
Returns the value of attribute outcome.
15 16 17 |
# File 'lib/rules_engine/rule/outcome.rb', line 15 def outcome @outcome end |
#title ⇒ Object
Returns the value of attribute title.
17 18 19 |
# File 'lib/rules_engine/rule/outcome.rb', line 17 def title @title end |
#workflow_code ⇒ Object
Returns the value of attribute workflow_code.
16 17 18 |
# File 'lib/rules_engine/rule/outcome.rb', line 16 def workflow_code @workflow_code end |