Class: Evinrude::LogEntry::StateMachineCommand

Inherits:
Evinrude::LogEntry show all
Defined in:
lib/evinrude/log_entry/state_machine_command.rb

Instance Attribute Summary collapse

Attributes inherited from Evinrude::LogEntry

#term

Instance Method Summary collapse

Methods inherited from Evinrude::LogEntry

classes

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

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

#idObject (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_nameObject (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