Class: GustoEmbedded::Models::Operations::PostV1CompaniesCompanyIdPeopleBatchesJob

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/operations/post_v1_companies_company_id_people_batches_job.rb

Overview

Job details for the employee (required if compensation is provided)

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(title:, hire_date:, two_percent_shareholder: nil, state_wc_covered: nil, state_wc_class_code: nil) ⇒ PostV1CompaniesCompanyIdPeopleBatchesJob

Returns a new instance of PostV1CompaniesCompanyIdPeopleBatchesJob.



27
28
29
30
31
32
33
# File 'lib/gusto_embedded/models/operations/post_v1_companies_company_id_people_batches_job.rb', line 27

def initialize(title:, hire_date:, two_percent_shareholder: nil, state_wc_covered: nil, state_wc_class_code: nil)
  @title = title
  @hire_date = hire_date
  @two_percent_shareholder = two_percent_shareholder
  @state_wc_covered = state_wc_covered
  @state_wc_class_code = state_wc_class_code
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/gusto_embedded/models/operations/post_v1_companies_company_id_people_batches_job.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @title == other.title
  return false unless @hire_date == other.hire_date
  return false unless @two_percent_shareholder == other.two_percent_shareholder
  return false unless @state_wc_covered == other.state_wc_covered
  return false unless @state_wc_class_code == other.state_wc_class_code
  true
end