Class: MpWeixin::LocationMessage
- Defined in:
- lib/mp_weixin/models/message.rb
Overview
<xml>
<ToUserName><![CDATA[toUser]]></ToUserName>
<FromUserName><![CDATA[fromUser]]></FromUserName>
<CreateTime>1351776360</CreateTime>
<MsgType><![CDATA[location]]></MsgType>
<Location_X>23.134521</Location_X>
<Location_Y>113.358803</Location_Y>
<Scale>20</Scale>
<Label><![CDATA[位置信息]]></Label>
<MsgId>1234567890123456</MsgId>
</xml>
LocationMessage = Class.new(Message)
Instance Attribute Summary collapse
-
#Label ⇒ Object
Returns the value of attribute Label.
-
#Location_X ⇒ Object
Returns the value of attribute Location_X.
-
#Location_Y ⇒ Object
Returns the value of attribute Location_Y.
-
#Scale ⇒ Object
Returns the value of attribute Scale.
Attributes inherited from Message
#CreateTime, #FromUserName, #MsgId, #MsgType, #ToUserName
Method Summary
Methods inherited from Message
#create_time, #created_at, from_xml, #initialize, #msg_id, #reply, #reply_image_message, #reply_music_message, #reply_news_message, #reply_text_message, #reply_video_message, #reply_voice_message
Methods included from ActiveModel::Model
included, #initialize, #persisted?
Constructor Details
This class inherits a constructor from MpWeixin::Message
Instance Attribute Details
#Label ⇒ Object
Returns the value of attribute Label.
209 210 211 |
# File 'lib/mp_weixin/models/message.rb', line 209 def Label @Label end |
#Location_X ⇒ Object
Returns the value of attribute Location_X.
209 210 211 |
# File 'lib/mp_weixin/models/message.rb', line 209 def Location_X @Location_X end |
#Location_Y ⇒ Object
Returns the value of attribute Location_Y.
209 210 211 |
# File 'lib/mp_weixin/models/message.rb', line 209 def Location_Y @Location_Y end |
#Scale ⇒ Object
Returns the value of attribute Scale.
209 210 211 |
# File 'lib/mp_weixin/models/message.rb', line 209 def Scale @Scale end |