Class: FinchAPI::Resources::HRIS::Employments
- Inherits:
-
Object
- Object
- FinchAPI::Resources::HRIS::Employments
- Defined in:
- lib/finch_api/resources/hris/employments.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Employments
constructor
private
A new instance of Employments.
-
#retrieve_many(requests: , entity_ids: nil, request_options: {}) ⇒ FinchAPI::Internal::ResponsesPage<FinchAPI::Models::HRIS::EmploymentDataResponse>
Read individual employment and income data.
Constructor Details
#initialize(client:) ⇒ Employments
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 Employments.
37 38 39 |
# File 'lib/finch_api/resources/hris/employments.rb', line 37 def initialize(client:) @client = client end |
Instance Method Details
#retrieve_many(requests: , entity_ids: nil, request_options: {}) ⇒ FinchAPI::Internal::ResponsesPage<FinchAPI::Models::HRIS::EmploymentDataResponse>
Read individual employment and income data
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/finch_api/resources/hris/employments.rb', line 20 def retrieve_many(params) parsed, = FinchAPI::HRIS::EmploymentRetrieveManyParams.dump_request(params) query_params = [:entity_ids] @client.request( method: :post, path: "employer/employment", query: parsed.slice(*query_params), body: parsed.except(*query_params), page: FinchAPI::Internal::ResponsesPage, model: FinchAPI::HRIS::EmploymentDataResponse, options: ) end |