Class: NucleusCore::Workflow::Node
- Inherits:
-
Object
- Object
- NucleusCore::Workflow::Node
- Defined in:
- lib/nucleus_core/workflow.rb
Instance Attribute Summary collapse
-
#determine_signal ⇒ Object
readonly
Returns the value of attribute determine_signal.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#prepare_context ⇒ Object
readonly
Returns the value of attribute prepare_context.
-
#rollback ⇒ Object
readonly
Returns the value of attribute rollback.
-
#signals ⇒ Object
readonly
Returns the value of attribute signals.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(attrs = {}) ⇒ Node
Returns a new instance of Node.
7 8 9 10 11 12 13 14 |
# File 'lib/nucleus_core/workflow.rb', line 7 def initialize(attrs={}) @state = attrs[:state] @operation = attrs[:operation] @rollback = attrs[:rollback] @signals = attrs[:signals] @prepare_context = attrs[:prepare_context] @determine_signal = attrs[:determine_signal] end |
Instance Attribute Details
#determine_signal ⇒ Object (readonly)
Returns the value of attribute determine_signal.
5 6 7 |
# File 'lib/nucleus_core/workflow.rb', line 5 def determine_signal @determine_signal end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
5 6 7 |
# File 'lib/nucleus_core/workflow.rb', line 5 def operation @operation end |
#prepare_context ⇒ Object (readonly)
Returns the value of attribute prepare_context.
5 6 7 |
# File 'lib/nucleus_core/workflow.rb', line 5 def prepare_context @prepare_context end |
#rollback ⇒ Object (readonly)
Returns the value of attribute rollback.
5 6 7 |
# File 'lib/nucleus_core/workflow.rb', line 5 def rollback @rollback end |
#signals ⇒ Object (readonly)
Returns the value of attribute signals.
5 6 7 |
# File 'lib/nucleus_core/workflow.rb', line 5 def signals @signals end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
5 6 7 |
# File 'lib/nucleus_core/workflow.rb', line 5 def state @state end |