Class: Skydrive::Comment
Overview
Comments that are associated with a photo, audio, or video
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
-
#delete ⇒ Object
Delete the comment.
-
#message ⇒ Object
The text of the comment.
-
#type ⇒ String
Always return ‘comment’.
Methods inherited from Object
#comment, #comments, #created_time, #description, #from, #id, #initialize, #is_embeddable?, #link, #name, #parent_id, #shared_with, #to_hash, #to_json, #updated_time, #upload_location
Constructor Details
This class inherits a constructor from Skydrive::Object
Instance Method Details
#delete ⇒ Object
Delete the comment
17 18 19 |
# File 'lib/skydrive/comment.rb', line 17 def delete client.delete("/#{id}") end |
#message ⇒ Object
The text of the comment
6 7 8 |
# File 'lib/skydrive/comment.rb', line 6 def object["message"] end |
#type ⇒ String
Always return ‘comment’
12 13 14 |
# File 'lib/skydrive/comment.rb', line 12 def type "comment" end |