Class: Chute::V2::Comments

Inherits:
Object
  • Object
show all
Defined in:
lib/chute/v2/comments.rb

Class Method Summary collapse

Class Method Details

.all(album_id, asset_id) ⇒ Object

Assets Comments



7
8
9
# File 'lib/chute/v2/comments.rb', line 7

def all(album_id, asset_id)
  Chute::Client.get("/v2/albums/#{album_id}/assets/#{asset_id}/comments")
end

.create(album_id, asset_id, comment = {}) ⇒ Object

Comment params Params comment_text name email



16
17
18
# File 'lib/chute/v2/comments.rb', line 16

def create(album_id, asset_id, comment={})
  Chute::Client.post("/v2/albums/#{album_id}/assets/#{asset_id}/comments", comment)
end

.delete(comment_id) ⇒ Object



21
22
23
# File 'lib/chute/v2/comments.rb', line 21

def delete(comment_id)
  Chute::Client.delete("/v2/comments/#{comment_id}")
end