Class: FinchAPI::Resources::HRIS::Company
- Inherits:
-
Object
- Object
- FinchAPI::Resources::HRIS::Company
- Defined in:
- lib/finch_api/resources/hris/company.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Company
constructor
private
A new instance of Company.
-
#retrieve(entity_ids: nil, request_options: {}) ⇒ FinchAPI::Models::HRIS::HRISCompany
Read basic company data.
Constructor Details
#initialize(client:) ⇒ Company
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Company.
34 35 36 |
# File 'lib/finch_api/resources/hris/company.rb', line 34 def initialize(client:) @client = client end |
Instance Method Details
#retrieve(entity_ids: nil, request_options: {}) ⇒ FinchAPI::Models::HRIS::HRISCompany
Read basic company data
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/finch_api/resources/hris/company.rb', line 18 def retrieve(params = {}) parsed, = FinchAPI::HRIS::CompanyRetrieveParams.dump_request(params) query = FinchAPI::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "employer/company", query: query, model: FinchAPI::HRIS::HRISCompany, security: {bearer_auth: true}, options: ) end |