Class: XingApi::Company::Update::Comment

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

Class Method Summary collapse

Methods inherited from Base

request, request_with_body

Class Method Details

.create(update_id, content, options = {}) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/xing_api/company/update/comment.rb', line 9

def self.create(update_id, content, options = {})
  request(
    :post,
    "/v1/companies/updates/#{update_id}/comments",
    { content: content }.merge(options)
  )
end

.delete(update_id, comment_id, options = {}) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/xing_api/company/update/comment.rb', line 17

def self.delete(update_id, comment_id, options = {})
  request(
    :delete,
    "/v1/companies/updates/#{update_id}/comments/#{comment_id}",
    options
  )
end

.list(update_id, options = {}) ⇒ Object



5
6
7
# File 'lib/xing_api/company/update/comment.rb', line 5

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