Class: MpWeixin::LinkMessage

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

Overview

<xml>

  <ToUserName><![CDATA[toUser]]></ToUserName>
  <FromUserName><![CDATA[fromUser]]></FromUserName>
  <CreateTime>1351776360</CreateTime>
  <MsgType><![CDATA[link]]></MsgType>
  <Title><![CDATA[公众平台官网链接]]></Title>
  <Description><![CDATA[公众平台官网链接]]></Description>
  <Url><![CDATA[url]]></Url>
  <MsgId>1234567890123456</MsgId>
</xml>

LinkMessage = Class.new(Message)

Instance Attribute Summary collapse

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

#DescriptionObject

Returns the value of attribute Description.



225
226
227
# File 'lib/mp_weixin/models/message.rb', line 225

def Description
  @Description
end

#TitleObject

Returns the value of attribute Title.



225
226
227
# File 'lib/mp_weixin/models/message.rb', line 225

def Title
  @Title
end

#UrlObject

Returns the value of attribute Url.



225
226
227
# File 'lib/mp_weixin/models/message.rb', line 225

def Url
  @Url
end