Class: RulesEngine::Rule::Outcome

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#outcomeObject

Returns the value of attribute outcome.



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

def outcome
  @outcome
end

#titleObject

Returns the value of attribute title.



17
18
19
# File 'lib/rules_engine/rule/outcome.rb', line 17

def title
  @title
end

#workflow_codeObject

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