Class: QyWechat::VoiceMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/qy_wechat/message/message.rb

Overview

<xml>

<ToUserName><![CDATA[toUser]]></ToUserName>
<FromUserName><![CDATA[fromUser]]></FromUserName>
<CreateTime>1376632760</CreateTime>
<MsgType><![CDATA[voice]]></MsgType>
<MediaId><![CDATA[Qyb0tgux6QLjhL6ipvFZJ-kUt2tcQtkn0BU365Vt3wUAtqfGam4QpZU35RXVhv6G]]></MediaId>
<Format><![CDATA[amr]]></Format>
<MsgId>5912592682802219078</MsgId>
<Recognition><![CDATA[]]></Recognition>

</xml>

Instance Method Summary collapse

Methods inherited from Message

#CreateTime, #MsgId, #agent_id, #corp_id, factory, #initialize, #method_missing

Constructor Details

This class inherits a constructor from QyWechat::Message

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class QyWechat::Message

Instance Method Details

#FormatObject



141
142
143
# File 'lib/qy_wechat/message/message.rb', line 141

def Format
  @source.Format
end

#MediaIdObject



137
138
139
# File 'lib/qy_wechat/message/message.rb', line 137

def MediaId
  @source.MediaId
end