Class: SkypeR::Parser::GetChatRecentmessagesCommand

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

Overview

<get_chat_recentchatmessages_command> := GET CHAT <chat_id> RECENTCHATMESSAGES <get_chat_recentchatmessages_response> := CHAT <chat_id> RECENTCHATMESSAGES <identifier_sequence>

Instance Attribute Summary

Attributes inherited from CommandBase

#response

Instance Method Summary collapse

Constructor Details

#initializeGetChatRecentmessagesCommand

Returns a new instance of GetChatRecentmessagesCommand.



103
104
105
106
107
108
109
110
111
112
113
# File 'lib/skyper/command.rb', line 103

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