Class: FinchAPI::Resources::HRIS::Company

Inherits:
Object
  • Object
show all
Defined in:
lib/finch_api/resources/hris/company.rb

Instance Method Summary collapse

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.

Parameters:



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

Parameters:

  • entity_ids (Array<String>)

    The entity IDs to specify which entities’ data to access.

  • request_options (FinchAPI::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



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, options = 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: options
  )
end