class SmartRecruiters::JobsResource

Public Instance Methods

list(**params) click to toggle source
# 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:) click to toggle source
# 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:) click to toggle source
# File lib/smartrecruiters/resources/jobs.rb, line 10
def retrieve(job_id:)
  Job.new get_request("jobs/#{job_id}").body
end