Class: MpWeixin::NewsReplyMessage

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 = {}) ⇒ NewsReplyMessage

Returns a new instance of NewsReplyMessage.



161
162
163
164
# File 'lib/mp_weixin/models/reply_message.rb', line 161

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

Instance Attribute Details

#ArticleCountObject

Returns the value of attribute ArticleCount.



156
157
158
# File 'lib/mp_weixin/models/reply_message.rb', line 156

def ArticleCount
  @ArticleCount
end

#ArticlesObject

Returns the value of attribute Articles.



156
157
158
# File 'lib/mp_weixin/models/reply_message.rb', line 156

def Articles
  @Articles
end