class SmartRecruiters::OffersResource

Public Instance Methods

list(**params) click to toggle source
# File lib/smartrecruiters/resources/offers.rb, line 5
def list(**params)
  response = get_request('offers', params: params)
  Collection.from_response(response, type: Offer)
end
retrieve(offer_id:, candidate_id:, job_id:) click to toggle source
# File lib/smartrecruiters/resources/offers.rb, line 15
def retrieve(offer_id:, candidate_id:, job_id:)
  Offer.new get_request("candidates/#{candidate_id}/jobs/#{job_id}/offers/#{offer_id}").body
end
retrieve_offers(candidate_id:, job_id:) click to toggle source
# File lib/smartrecruiters/resources/offers.rb, line 10
def retrieve_offers(candidate_id:, job_id:)
  response = get_request("candidates/#{candidate_id}/jobs/#{job_id}/offers")
  Collection.from_response(response, type: Offer)
end