Class: FinchAPI::Resources::Sandbox::Employment
- Inherits:
-
Object
- Object
- FinchAPI::Resources::Sandbox::Employment
- Defined in:
- lib/finch_api/resources/sandbox/employment.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Employment
constructor
private
A new instance of Employment.
-
#update(individual_id, class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, income: nil, income_history: nil, is_active: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil, request_options: {}) ⇒ FinchAPI::Models::Sandbox::EmploymentUpdateResponse
Some parameter documentations has been truncated, see Models::Sandbox::EmploymentUpdateParams for more details.
Constructor Details
#initialize(client:) ⇒ Employment
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 Employment.
71 72 73 |
# File 'lib/finch_api/resources/sandbox/employment.rb', line 71 def initialize(client:) @client = client end |
Instance Method Details
#update(individual_id, class_code: nil, custom_fields: nil, department: nil, employment: nil, employment_status: nil, end_date: nil, first_name: nil, income: nil, income_history: nil, is_active: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, source_id: nil, start_date: nil, title: nil, request_options: {}) ⇒ FinchAPI::Models::Sandbox::EmploymentUpdateResponse
Some parameter documentations has been truncated, see Models::Sandbox::EmploymentUpdateParams for more details.
Update sandbox employment
57 58 59 60 61 62 63 64 65 66 |
# File 'lib/finch_api/resources/sandbox/employment.rb', line 57 def update(individual_id, params = {}) parsed, = FinchAPI::Sandbox::EmploymentUpdateParams.dump_request(params) @client.request( method: :put, path: ["sandbox/employment/%1$s", individual_id], body: parsed, model: FinchAPI::Models::Sandbox::EmploymentUpdateResponse, options: ) end |