Class: MpWeixin::ImageMessage
- Defined in:
- lib/mp_weixin/models/message.rb
Overview
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName>
<FromUserName><![CDATA[fromUser]]></FromUserName>
<CreateTime>1348831860</CreateTime>
<MsgType><![CDATA[image]]></MsgType>
<PicUrl><![CDATA[this is a url]]></PicUrl>
<MsgId>1234567890123456</MsgId>
</xml>
ImageMessage = Class.new(Message)
Instance Attribute Summary collapse
-
#MediaId ⇒ Object
Returns the value of attribute MediaId.
-
#PicUrl ⇒ Object
Returns the value of attribute PicUrl.
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
#MediaId ⇒ Object
Returns the value of attribute MediaId.
164 165 166 |
# File 'lib/mp_weixin/models/message.rb', line 164 def MediaId @MediaId end |
#PicUrl ⇒ Object
Returns the value of attribute PicUrl.
164 165 166 |
# File 'lib/mp_weixin/models/message.rb', line 164 def PicUrl @PicUrl end |