Class: MpWeixin::VoiceReplyMessage

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

Returns a new instance of VoiceReplyMessage.



88
89
90
91
# File 'lib/mp_weixin/models/reply_message.rb', line 88

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

Instance Attribute Details

#VoiceObject

Returns the value of attribute Voice.



84
85
86
# File 'lib/mp_weixin/models/reply_message.rb', line 84

def Voice
  @Voice
end