Class: MpWeixin::TextMessage

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

Overview

<xml>

  <ToUserName><![CDATA[toUser]]></ToUserName>
  <FromUserName><![CDATA[fromUser]]></FromUserName>
  <CreateTime>1348831860</CreateTime>
  <MsgType><![CDATA[text]]></MsgType>
  <Content><![CDATA[this is a test]]></Content>
  <MsgId>1234567890123456</MsgId>
</xml>

TextMessage = 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

#ContentObject

Returns the value of attribute Content.



151
152
153
# File 'lib/mp_weixin/models/message.rb', line 151

def Content
  @Content
end