Class: Skydrive::Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/skydrive/comment.rb

Overview

Comments that are associated with a photo, audio, or video

Instance Attribute Summary

Attributes inherited from Object

#client, #object

Instance Method Summary collapse

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

#deleteObject

Delete the comment



17
18
19
# File 'lib/skydrive/comment.rb', line 17

def delete
  client.delete("/#{id}")
end

#messageObject

The text of the comment



6
7
8
# File 'lib/skydrive/comment.rb', line 6

def message
  object["message"]
end

#typeString

Always return ‘comment’

Returns:

  • (String)


12
13
14
# File 'lib/skydrive/comment.rb', line 12

def type
  "comment"
end