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_WORKFLOW =
3

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#outcomeObject

Returns the value of attribute outcome.



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

def outcome
  @outcome
end

#workflow_codeObject

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