Class: SkypeR::Parser::GetChatChatmessagesCommand

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/skyper/command.rb

Overview

<get_chat_chatmessages_command> := GET CHAT <chat_id> CHATMESSAGES <get_chat_chatmessages_response> := CHAT <chat_id> CHATMESSAGES <identifier_sequence>

Instance Attribute Summary

Attributes inherited from CommandBase

#response

Instance Method Summary collapse

Constructor Details

#initializeGetChatChatmessagesCommand

Returns a new instance of GetChatChatmessagesCommand.



86
87
88
89
90
91
92
93
94
95
96
# File 'lib/skyper/command.rb', line 86

def initialize
  @parser = lambda do
    Yaparc::SeqParser.new(Yaparc::Symbol.new("GET"),
                          Yaparc::Symbol.new("CHAT"),
                          ChatID.new,
                          Yaparc::Symbol.new("CHATMESSAGES")) do |_,_,chat_id,_|
      {:command_instance => self, :chat_id => chat_id}
    end
  end
  @response = GetChatChatmessagesResponse.new
end