Class: FinchAPI::Resources::Sandbox::Employment

Inherits:
Object
  • Object
show all
Defined in:
lib/finch_api/resources/sandbox/employment.rb

Instance Method Summary collapse

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.

Parameters:



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

Parameters:

Returns:

See Also:



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