Class: SkypeR::Parser::GetChatRecentmessagesCommand
- Inherits:
-
CommandBase
- Object
- Yaparc::AbstractParser
- CommandBase
- SkypeR::Parser::GetChatRecentmessagesCommand
- 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
Instance Method Summary collapse
-
#initialize ⇒ GetChatRecentmessagesCommand
constructor
A new instance of GetChatRecentmessagesCommand.
Constructor Details
#initialize ⇒ GetChatRecentmessagesCommand
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 |