Class: MpWeixin::MusicReplyMessage

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

Returns a new instance of MusicReplyMessage.



137
138
139
140
# File 'lib/mp_weixin/models/reply_message.rb', line 137

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

Instance Attribute Details

#MusicObject

Returns the value of attribute Music.



133
134
135
# File 'lib/mp_weixin/models/reply_message.rb', line 133

def Music
  @Music
end