Class: MpWeixin::NewsReplyMessage
- Inherits:
-
ReplyMessage
- Object
- ReplyMessage
- MpWeixin::NewsReplyMessage
- Defined in:
- lib/mp_weixin/models/reply_message.rb
Instance Attribute Summary collapse
-
#ArticleCount ⇒ Object
Returns the value of attribute ArticleCount.
-
#Articles ⇒ Object
Returns the value of attribute Articles.
Attributes inherited from ReplyMessage
#CreateTime, #FromUserName, #MsgType, #ToUserName
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ NewsReplyMessage
constructor
A new instance of NewsReplyMessage.
Methods inherited from ReplyMessage
Methods included from ActiveModel::Model
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
#ArticleCount ⇒ Object
Returns the value of attribute ArticleCount.
156 157 158 |
# File 'lib/mp_weixin/models/reply_message.rb', line 156 def ArticleCount @ArticleCount end |
#Articles ⇒ Object
Returns the value of attribute Articles.
156 157 158 |
# File 'lib/mp_weixin/models/reply_message.rb', line 156 def Articles @Articles end |