Class: StatesLanguageMachine::States::ExecutionResult

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_slm/states/wait.rb

Overview

Simple result class for execution

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(next_state: nil, output: nil, end_execution: false) ⇒ ExecutionResult

Returns a new instance of ExecutionResult.



116
117
118
119
120
# File 'lib/ruby_slm/states/wait.rb', line 116

def initialize(next_state: nil, output: nil, end_execution: false)
  @next_state = next_state
  @output = output
  @end_execution = end_execution
end

Instance Attribute Details

#end_executionObject (readonly)

Returns the value of attribute end_execution.



114
115
116
# File 'lib/ruby_slm/states/wait.rb', line 114

def end_execution
  @end_execution
end

#next_stateObject (readonly)

Returns the value of attribute next_state.



114
115
116
# File 'lib/ruby_slm/states/wait.rb', line 114

def next_state
  @next_state
end

#outputObject (readonly)

Returns the value of attribute output.



114
115
116
# File 'lib/ruby_slm/states/wait.rb', line 114

def output
  @output
end