Module: Camp3::Client::CommentAPI

Included in:
Camp3::Client
Defined in:
lib/camp3/api/comment.rb

Instance Method Summary collapse

Instance Method Details

#add_comment(resource, content) ⇒ Object



5
6
7
# File 'lib/camp3/api/comment.rb', line 5

def add_comment(resource, content)
  post(resource.comments_url, override_path: true, body: { content: content }.to_json)
end

#comments(resource) ⇒ Object



9
10
11
# File 'lib/camp3/api/comment.rb', line 9

def comments(resource)
  get(resource.comments_url, override_path: true)
end