Class: MpWeixin::TextReplyMessage

Inherits:
ReplyMessage show all
Defined in:
lib/mp_weixin/models/reply_message.rb

Instance Attribute Summary collapse

Attributes inherited from ReplyMessage

#CreateTime, #FromUserName, #MsgType, #ToUserName

Instance Method Summary collapse

Methods inherited from ReplyMessage

set_nested_attr, #to_xml

Methods included from ActiveModel::Model

included, #persisted?

Constructor Details

#initialize(attributes = {}) ⇒ TextReplyMessage

Returns a new instance of TextReplyMessage.



46
47
48
49
# File 'lib/mp_weixin/models/reply_message.rb', line 46

def initialize(attributes = {})
  super
  @MsgType ||= 'text'
end

Instance Attribute Details

#ContentObject

include ActiveModel::Model



43
44
45
# File 'lib/mp_weixin/models/reply_message.rb', line 43

def Content
  @Content
end