Class: GetCurrentProgramNameReply

Inherits:
DirectCommandReply show all
Includes:
MessageTranslator
Defined in:
lib/telegrams/commands/direct/replies/get_current_program_name_reply.rb

Constant Summary

Constants included from MessageTranslator

MessageTranslator::FILENAME_MAX_LENGTH

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

#type

Instance Method Summary collapse

Methods included from MessageTranslator

#add_default_extension_if_missing, #boolean_as_bytes, #boolean_from_bytes, #integer_as_bytes, #integer_as_ulong_bytes, #integer_as_uword_bytes, #integer_from_bytes, #string_as_bytes, #string_from_bytes

Methods inherited from Reply

#success?

Methods inherited from Telegram

#as_bytes, #max_size_in_bytes

Constructor Details

#initialize(bytes) ⇒ GetCurrentProgramNameReply

Returns a new instance of GetCurrentProgramNameReply.



7
8
9
10
# File 'lib/telegrams/commands/direct/replies/get_current_program_name_reply.rb', line 7

def initialize(bytes)
  super(bytes)
  @message = parse_message_bytes_into_filename
end

Instance Method Details

#messageObject



12
13
14
# File 'lib/telegrams/commands/direct/replies/get_current_program_name_reply.rb', line 12

def message
  @message
end

#program_nameObject



16
17
18
# File 'lib/telegrams/commands/direct/replies/get_current_program_name_reply.rb', line 16

def program_name
  message
end