Class: SmartRecruiters::JobsResource
- Inherits:
-
Resource
- Object
- Resource
- SmartRecruiters::JobsResource
show all
- Defined in:
- lib/smartrecruiters/resources/jobs.rb
Instance Attribute Summary
Attributes inherited from Resource
#client
Instance Method Summary
collapse
Methods inherited from Resource
#initialize
Instance Method Details
#list(**params) ⇒ Object
5
6
7
8
|
# File 'lib/smartrecruiters/resources/jobs.rb', line 5
def list(**params)
response = get_request('jobs', params: params)
Collection.from_response(response, type: Job)
end
|
#list_hiring_team(job_id:) ⇒ Object
14
15
16
17
|
# File 'lib/smartrecruiters/resources/jobs.rb', line 14
def list_hiring_team(job_id:)
response = get_request("jobs/#{job_id}/hiring-team")
Collection.from_response(response, type: Object)
end
|
#retrieve(job_id:) ⇒ Object
10
11
12
|
# File 'lib/smartrecruiters/resources/jobs.rb', line 10
def retrieve(job_id:)
Job.new get_request("jobs/#{job_id}").body
end
|