Class: MpWeixin::VoiceMessage
- Defined in:
- lib/mp_weixin/models/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>
VoiceMessage = Class.new(Message)
Instance Attribute Summary collapse
-
#Format ⇒ Object
Returns the value of attribute Format.
-
#MediaId ⇒ Object
Returns the value of attribute MediaId.
Attributes inherited from Message
#CreateTime, #FromUserName, #MsgId, #MsgType, #ToUserName
Method Summary
Methods inherited from Message
#create_time, #created_at, from_xml, #initialize, #msg_id, #reply, #reply_image_message, #reply_music_message, #reply_news_message, #reply_text_message, #reply_video_message, #reply_voice_message
Methods included from ActiveModel::Model
included, #initialize, #persisted?
Constructor Details
This class inherits a constructor from MpWeixin::Message
Instance Attribute Details
#Format ⇒ Object
Returns the value of attribute Format.
179 180 181 |
# File 'lib/mp_weixin/models/message.rb', line 179 def Format @Format end |
#MediaId ⇒ Object
Returns the value of attribute MediaId.
179 180 181 |
# File 'lib/mp_weixin/models/message.rb', line 179 def MediaId @MediaId end |