Class: XingApi::Activity::Comment

Inherits:
Base
  • Object
show all
Defined in:
lib/xing_api/activity/comment.rb

Class Method Summary collapse

Methods inherited from Base

request, request_with_body

Class Method Details

.create(activity_id, comment, options = {}) ⇒ Object



8
9
10
# 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 = {}) ⇒ Object



12
13
14
# 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 = {}) ⇒ Object



4
5
6
# File 'lib/xing_api/activity/comment.rb', line 4

def self.list(activity_id, options = {})
  request(:get, "/v1/activities/#{activity_id}/comments", options)
end