Class: StatesLanguageMachine::States::ExecutionResult
- Inherits:
-
Object
- Object
- StatesLanguageMachine::States::ExecutionResult
- Defined in:
- lib/ruby_slm/states/wait.rb
Overview
Simple result class for execution
Instance Attribute Summary collapse
-
#end_execution ⇒ Object
readonly
Returns the value of attribute end_execution.
-
#next_state ⇒ Object
readonly
Returns the value of attribute next_state.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(next_state: nil, output: nil, end_execution: false) ⇒ ExecutionResult
constructor
A new instance of ExecutionResult.
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_execution ⇒ Object (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_state ⇒ Object (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 |
#output ⇒ Object (readonly)
Returns the value of attribute output.
114 115 116 |
# File 'lib/ruby_slm/states/wait.rb', line 114 def output @output end |