Class: GreenhouseApi::Resources::Offers

Inherits:
BaseClient
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/greenhouse_api/resources/offers.rb

Constant Summary

Constants inherited from BaseClient

BaseClient::API_URL, BaseClient::MAX_PER_PAGE

Instance Method Summary collapse

Methods inherited from BaseClient

#compose_response, #get_one, #headers, #initialize, #list_many, #request

Constructor Details

This class inherits a constructor from GreenhouseApi::BaseClient

Instance Method Details

#get_current_offer_for_application(application_id) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/greenhouse_api/resources/offers.rb', line 12

def get_current_offer_for_application(application_id)
  response = request(
    http_method: :get,
    headers: headers,
    endpoint: "applications/#{application_id}/offers/current_offer",
  )
  compose_response(response)
end