Class: Evinrude::LogEntry::StateMachineCommand
- Inherits:
-
Evinrude::LogEntry
- Object
- Evinrude::LogEntry
- Evinrude::LogEntry::StateMachineCommand
- Defined in:
- lib/evinrude/log_entry/state_machine_command.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#node_name ⇒ Object
readonly
Returns the value of attribute node_name.
Attributes inherited from Evinrude::LogEntry
Instance Method Summary collapse
-
#initialize(term:, command:, id:, node_name:) ⇒ StateMachineCommand
constructor
A new instance of StateMachineCommand.
Methods inherited from Evinrude::LogEntry
Constructor Details
#initialize(term:, command:, id:, node_name:) ⇒ StateMachineCommand
Returns a new instance of StateMachineCommand.
6 7 8 9 10 |
# File 'lib/evinrude/log_entry/state_machine_command.rb', line 6 def initialize(term:, command:, id:, node_name:) super(term: term) @command, @id, @node_name = command, id, node_name end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
4 5 6 |
# File 'lib/evinrude/log_entry/state_machine_command.rb', line 4 def command @command end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/evinrude/log_entry/state_machine_command.rb', line 4 def id @id end |
#node_name ⇒ Object (readonly)
Returns the value of attribute node_name.
4 5 6 |
# File 'lib/evinrude/log_entry/state_machine_command.rb', line 4 def node_name @node_name end |