Sha256: 789a39e89624dd54d739f8385aaea2116f5894226d765375d51d1a82beeccd7f
Contents?: true
Size: 956 Bytes
Versions: 5
Compression:
Stored size: 956 Bytes
Contents
module BugherdClient module Resources module V2 class Comment < Base # # Get a paginated list of comments for a task. # def all(project_id, task_id) raw_response = get_request("projects/#{project_id}/tasks/#{task_id}/comments") parse_response(raw_response, :comments) end # # Get a single comment of a Task # def find(project_id, task_id, comment_id) raw_response = get_request("projects/#{project_id}/tasks/#{task_id}/comments/#{comment_id}") parse_response(raw_response, :comment) end # # Create a comment # attributes: text, user_id or email def create(project_id, task_id, attributes={}) raw_response = post_request("projects/#{project_id}/tasks/#{task_id}/comments", comment: attributes) parse_response(raw_response) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems