class XingApi::Activity::Comment

Public Class Methods

create(activity_id, comment, options = {}) click to toggle source
# File lib/xing_api/activity/comment.rb, line 8
def self.create(activity_id, comment, options = {})
  request(:post, "/v1/activities/#{activity_id}/comments", { text: comment }.merge(options))
end
delete(activity_id, comment_id, options = {}) click to toggle source
# File lib/xing_api/activity/comment.rb, line 12
def self.delete(activity_id, comment_id, options = {})
  request(:delete, "/v1/activities/#{activity_id}/comments/#{comment_id}", options)
end
list(activity_id, options = {}) click to toggle source
# File lib/xing_api/activity/comment.rb, line 4
def self.list(activity_id, options = {})
  request(:get, "/v1/activities/#{activity_id}/comments", options)
end