Class: NucleusCore::Workflow::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/nucleus_core/workflow.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_signalObject (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

#operationObject (readonly)

Returns the value of attribute operation.



5
6
7
# File 'lib/nucleus_core/workflow.rb', line 5

def operation
  @operation
end

#prepare_contextObject (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

#rollbackObject (readonly)

Returns the value of attribute rollback.



5
6
7
# File 'lib/nucleus_core/workflow.rb', line 5

def rollback
  @rollback
end

#signalsObject (readonly)

Returns the value of attribute signals.



5
6
7
# File 'lib/nucleus_core/workflow.rb', line 5

def signals
  @signals
end

#stateObject (readonly)

Returns the value of attribute state.



5
6
7
# File 'lib/nucleus_core/workflow.rb', line 5

def state
  @state
end