Class: XingApi::Company
- Inherits:
-
Base
- Object
- Base
- XingApi::Company
show all
- Defined in:
- lib/xing_api/company.rb,
lib/xing_api/company/update.rb,
lib/xing_api/company/update/comment.rb
Defined Under Namespace
Classes: Update
Class Method Summary
collapse
Methods inherited from Base
request, request_with_body
Class Method Details
23
24
25
|
# File 'lib/xing_api/company.rb', line 23
def self.contacts(company_id, options = {})
request(:get, "/v1/companies/#{company_id}/contacts", options)
end
|
.employees(company_id, options = {}) ⇒ Object
19
20
21
|
# File 'lib/xing_api/company.rb', line 19
def self.employees(company_id, options = {})
request(:get, "/v1/companies/#{company_id}/employees", options)
end
|
.find(company_id, options = {}) ⇒ Object
3
4
5
|
# File 'lib/xing_api/company.rb', line 3
def self.find(company_id, options = {})
request(:get, "/v1/companies/#{company_id}", options)
end
|
.follow(company_id, options = {}) ⇒ Object
15
16
17
|
# File 'lib/xing_api/company.rb', line 15
def self.follow(company_id, options = {})
request(:put, "/v1/companies/#{company_id}/follow", options)
end
|
.search(keywords, options = {}) ⇒ Object
7
8
9
|
# File 'lib/xing_api/company.rb', line 7
def self.search(keywords, options = {})
request(:get, '/v1/companies/find', { keywords: keywords }.merge(options))
end
|
.unfollow(company_id, options = {}) ⇒ Object
11
12
13
|
# File 'lib/xing_api/company.rb', line 11
def self.unfollow(company_id, options = {})
request(:delete, "/v1/companies/#{company_id}/follow", options)
end
|