Class: Evinrude::Message::CommandRequest
- Inherits:
-
Evinrude::Message
- Object
- Evinrude::Message
- Evinrude::Message::CommandRequest
- Defined in:
- lib/evinrude/message/command_request.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.
Instance Method Summary collapse
- #expected_reply_types ⇒ Object
-
#initialize(command:, id:, node_name:) ⇒ CommandRequest
constructor
A new instance of CommandRequest.
Methods inherited from Evinrude::Message
classes, parse, permitted_classes
Constructor Details
#initialize(command:, id:, node_name:) ⇒ CommandRequest
Returns a new instance of CommandRequest.
9 10 11 |
# File 'lib/evinrude/message/command_request.rb', line 9 def initialize(command:, id:, node_name:) @command, @id, @node_name = command, id, node_name end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
7 8 9 |
# File 'lib/evinrude/message/command_request.rb', line 7 def command @command end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/evinrude/message/command_request.rb', line 7 def id @id end |
#node_name ⇒ Object (readonly)
Returns the value of attribute node_name.
7 8 9 |
# File 'lib/evinrude/message/command_request.rb', line 7 def node_name @node_name end |
Instance Method Details
#expected_reply_types ⇒ Object
13 14 15 |
# File 'lib/evinrude/message/command_request.rb', line 13 def expected_reply_types [CommandReply] end |