Sha256: 1bdec344a713494eef616fac275dae5774ce20337da16f88265865ca7db293ba
Contents?: true
Size: 619 Bytes
Versions: 3
Compression:
Stored size: 619 Bytes
Contents
module BugherdClient module Resources 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 # # 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bugherd_client-0.0.4 | lib/bugherd_client/resources/comment.rb |
bugherd_client-0.0.3 | lib/bugherd_client/resources/comment.rb |
bugherd_client-0.0.2 | lib/bugherd_client/resources/comment.rb |