class XingApi::Company::Update

Public Class Methods

create(company_id, headline, content, options = {}) click to toggle source
# File lib/xing_api/company/update.rb, line 8
def self.create(company_id, headline, content, options = {})
  request(
    :post,
    "/v1/companies/#{company_id}/updates",
    {
      headline: headline,
      content: content
    }.merge(options)
  )
end
delete(update_id, options = {}) click to toggle source
# File lib/xing_api/company/update.rb, line 23
def self.delete(update_id, options = {})
  request(:delete, "/v1/companies/updates/#{update_id}", options)
end
edit(update_id, options = {}) click to toggle source
# File lib/xing_api/company/update.rb, line 19
def self.edit(update_id, options = {})
  request(:put, "/v1/companies/updates/#{update_id}", options)
end
like(update_id, options = {}) click to toggle source
# File lib/xing_api/company/update.rb, line 27
def self.like(update_id, options = {})
  request(:put, "/v1/companies/updates/#{update_id}/like", options)
end
list(company_id, options = {}) click to toggle source
# File lib/xing_api/company/update.rb, line 4
def self.list(company_id, options = {})
  request(:get, "/v1/companies/#{company_id}/updates", options)
end
unlike(update_id, options = {}) click to toggle source
# File lib/xing_api/company/update.rb, line 31
def self.unlike(update_id, options = {})
  request(:delete, "/v1/companies/updates/#{update_id}/like", options)
end