Class: Dropio::Comment
Instance Attribute Summary collapse
-
#asset ⇒ Object
Returns the value of attribute asset.
-
#contents ⇒ Object
Returns the value of attribute contents.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#destroy! ⇒ Object
Destroys the comment on drop.io.
-
#save ⇒ Object
Saves the comment back to drop.io.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Dropio::Resource
Instance Attribute Details
#asset ⇒ Object
Returns the value of attribute asset.
3 4 5 |
# File 'lib/dropio/comment.rb', line 3 def asset @asset end |
#contents ⇒ Object
Returns the value of attribute contents.
3 4 5 |
# File 'lib/dropio/comment.rb', line 3 def contents @contents end |
#created_at ⇒ Object
Returns the value of attribute created_at.
3 4 5 |
# File 'lib/dropio/comment.rb', line 3 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/dropio/comment.rb', line 3 def id @id end |
Instance Method Details
#destroy! ⇒ Object
Destroys the comment on drop.io. Don’t try to use an Comment after destroying it.
11 12 13 |
# File 'lib/dropio/comment.rb', line 11 def destroy! Dropio::Resource.client.delete_comment(self) end |
#save ⇒ Object
Saves the comment back to drop.io
6 7 8 |
# File 'lib/dropio/comment.rb', line 6 def save Dropio::Resource.client.update_comment(self) end |