Class: WeixinPublic::WeixinMessage
- Inherits:
-
WeixinObject
- Object
- WeixinObject
- WeixinPublic::WeixinMessage
- Defined in:
- lib/weixin_public.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#dateTime ⇒ Object
Returns the value of attribute dateTime.
-
#fakeId ⇒ Object
Returns the value of attribute fakeId.
-
#fileId ⇒ Object
Returns the value of attribute fileId.
-
#hasReply ⇒ Object
Returns the value of attribute hasReply.
-
#id ⇒ Object
Returns the value of attribute id.
-
#nickName ⇒ Object
Returns the value of attribute nickName.
-
#remarkName ⇒ Object
Returns the value of attribute remarkName.
-
#source ⇒ Object
Returns the value of attribute source.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Methods inherited from WeixinObject
Constructor Details
This class inherits a constructor from WeixinPublic::WeixinObject
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
26 27 28 |
# File 'lib/weixin_public.rb', line 26 def content @content end |
#dateTime ⇒ Object
Returns the value of attribute dateTime.
26 27 28 |
# File 'lib/weixin_public.rb', line 26 def dateTime @dateTime end |
#fakeId ⇒ Object
Returns the value of attribute fakeId.
26 27 28 |
# File 'lib/weixin_public.rb', line 26 def fakeId @fakeId end |
#fileId ⇒ Object
Returns the value of attribute fileId.
26 27 28 |
# File 'lib/weixin_public.rb', line 26 def fileId @fileId end |
#hasReply ⇒ Object
Returns the value of attribute hasReply.
26 27 28 |
# File 'lib/weixin_public.rb', line 26 def hasReply @hasReply end |
#id ⇒ Object
Returns the value of attribute id.
26 27 28 |
# File 'lib/weixin_public.rb', line 26 def id @id end |
#nickName ⇒ Object
Returns the value of attribute nickName.
26 27 28 |
# File 'lib/weixin_public.rb', line 26 def nickName @nickName end |
#remarkName ⇒ Object
Returns the value of attribute remarkName.
26 27 28 |
# File 'lib/weixin_public.rb', line 26 def remarkName @remarkName end |
#source ⇒ Object
Returns the value of attribute source.
26 27 28 |
# File 'lib/weixin_public.rb', line 26 def source @source end |
#type ⇒ Object
Returns the value of attribute type.
26 27 28 |
# File 'lib/weixin_public.rb', line 26 def type @type end |
Instance Method Details
#filePath ⇒ Object
28 29 30 31 |
# File 'lib/weixin_public.rb', line 28 def filePath file_type = {"2"=>"jpg","3"=>"mp3","4"=>"mp4"}[@type] "#{@id}.#{file_type}" end |
#fileType ⇒ Object
33 34 35 |
# File 'lib/weixin_public.rb', line 33 def fileType filetype={"2"=>"image/jpg","3"=>"audio/mp3","4"=>"video/mp4"}[@type] end |