Class: SystemCommand

Inherits:
RespondableTelegram show all
Defined in:
lib/telegrams/commands/system_command.rb

Direct Known Subclasses

GetDeviceInfo

Instance Attribute Summary

Attributes inherited from RespondableTelegram

#command

Attributes inherited from Telegram

#type

Instance Method Summary collapse

Methods inherited from RespondableTelegram

#as_bytes, #require_response=, #require_response?

Methods inherited from Telegram

#as_bytes, #max_size_in_bytes

Constructor Details

#initialize(response_required = true) ⇒ SystemCommand

Returns a new instance of SystemCommand.



4
5
6
7
# File 'lib/telegrams/commands/system_command.rb', line 4

def initialize(response_required=true)
  super
  @type = 0x01
end