class Dogapi::V1::CommentService
Constants
- API_VERSION
Public Instance Methods
comment(message, options = {})
click to toggle source
Submit a comment.
# File lib/dogapi/v1/comment.rb 13 def comment(message, options = {}) 14 body = { 15 'message' => message, 16 }.merge options 17 18 request(Net::HTTP::Post, "/api/#{API_VERSION}/comments", nil, body, true) 19 end
delete_comment(comment_id)
click to toggle source
# File lib/dogapi/v1/comment.rb 26 def delete_comment(comment_id) 27 request(Net::HTTP::Delete, "/api/#{API_VERSION}/comments/#{comment_id}", nil, nil, false) 28 end
update_comment(comment_id, options = {})
click to toggle source
Update a comment.
# File lib/dogapi/v1/comment.rb 22 def update_comment(comment_id, options = {}) 23 request(Net::HTTP::Put, "/api/#{API_VERSION}/comments/#{comment_id}", nil, options, true) 24 end