Class: SkypeR::Parser::ChatMessageResponse
- Inherits:
-
ResponseBase
- Object
- Yaparc::AbstractParser
- ResponseBase
- SkypeR::Parser::ChatMessageResponse
- Defined in:
- lib/skyper/response.rb
Overview
<chat_message_response> := CHATMESSAGE <id> STATUS SENDING
Instance Method Summary collapse
-
#initialize ⇒ ChatMessageResponse
constructor
A new instance of ChatMessageResponse.
Constructor Details
#initialize ⇒ ChatMessageResponse
Returns a new instance of ChatMessageResponse.
287 288 289 290 291 292 293 294 295 296 297 298 299 |
# File 'lib/skyper/response.rb', line 287 def initialize @parser = lambda do Yaparc::Seq.new( Yaparc::Symbol.new("CHATMESSAGE"), CallId.new, Yaparc::Symbol.new("STATUS"), Yaparc::Symbol.new("SENDING") ) do |_,call_id,_,_| #{:call_id => call_id} SkypeR::Object::ChatMessage.new(Hash[:from_handle => call_id, :status => :sending]) end end end |