Class: GustoEmbedded::Models::Shared::EmployeeFederalTaxPre2020

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

Overview

Federal tax information for employees using the pre-2020 W4 form.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(version:, w4_data_type:, additional_withholding:, employee_uuid: nil, employee_id: nil, company_id: nil, filing_status: nil, federal_withholding_allowance: nil) ⇒ EmployeeFederalTaxPre2020

Returns a new instance of EmployeeFederalTaxPre2020.



38
39
40
41
42
43
44
45
46
47
# File 'lib/gusto_embedded/models/shared/employee_federal_tax_pre2020.rb', line 38

def initialize(version:, w4_data_type:, additional_withholding:, employee_uuid: nil, employee_id: nil, company_id: nil, filing_status: nil, federal_withholding_allowance: nil)
  @version = version
  @w4_data_type = w4_data_type
  @additional_withholding = additional_withholding
  @employee_uuid = employee_uuid
  @employee_id = employee_id
  @company_id = company_id
  @filing_status = filing_status
  @federal_withholding_allowance = federal_withholding_allowance
end

Instance Method Details

#==(other) ⇒ Object



50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/gusto_embedded/models/shared/employee_federal_tax_pre2020.rb', line 50

def ==(other)
  return false unless other.is_a? self.class
  return false unless @version == other.version
  return false unless @w4_data_type == other.w4_data_type
  return false unless @additional_withholding == other.additional_withholding
  return false unless @employee_uuid == other.employee_uuid
  return false unless @employee_id == other.employee_id
  return false unless @company_id == other.company_id
  return false unless @filing_status == other.filing_status
  return false unless @federal_withholding_allowance == other.federal_withholding_allowance
  true
end