Class: StopProgramReply
- Inherits:
-
DirectCommandReply
- Object
- Telegram
- Reply
- DirectCommandReply
- StopProgramReply
- Defined in:
- lib/telegrams/commands/direct/replies/stop_program_reply.rb
Constant Summary
Constants inherited from Reply
Reply::COMMAND_TYPE, Reply::STATUS_MESSAGES, Reply::SUCCESS
Instance Attribute Summary
Attributes inherited from Reply
#command, #message_bytes, #status, #status_description, #type
Attributes inherited from Telegram
Instance Method Summary collapse
-
#initialize(bytes) ⇒ StopProgramReply
constructor
A new instance of StopProgramReply.
-
#validate_bytes(bytes) ⇒ Object
override.
Methods inherited from Reply
Methods inherited from Telegram
Constructor Details
#initialize(bytes) ⇒ StopProgramReply
Returns a new instance of StopProgramReply.
4 5 6 |
# File 'lib/telegrams/commands/direct/replies/stop_program_reply.rb', line 4 def initialize(bytes) super(bytes) end |
Instance Method Details
#validate_bytes(bytes) ⇒ Object
override
9 10 11 12 |
# File 'lib/telegrams/commands/direct/replies/stop_program_reply.rb', line 9 def validate_bytes(bytes) super(bytes) raise ArgumentError, "must be a reply for a StopProgram command" unless bytes[1] == 0x01 end |