Class: GustoEmbedded::Models::Shared::EmployeeFederalTaxRev2020

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

Overview

Federal tax information for employees using the revised 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:, employee_uuid: nil, employee_id: nil, company_id: nil, filing_status: nil, extra_withholding: nil, two_jobs: nil, dependents_amount: nil, other_income: nil, deductions: nil) ⇒ EmployeeFederalTaxRev2020

Returns a new instance of EmployeeFederalTaxRev2020.



43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/gusto_embedded/models/shared/employee_federal_tax_rev2020.rb', line 43

def initialize(version:, w4_data_type:, employee_uuid: nil, employee_id: nil, company_id: nil, filing_status: nil, extra_withholding: nil, two_jobs: nil, dependents_amount: nil, other_income: nil, deductions: nil)
  @version = version
  @w4_data_type = w4_data_type
  @employee_uuid = employee_uuid
  @employee_id = employee_id
  @company_id = company_id
  @filing_status = filing_status
  @extra_withholding = extra_withholding
  @two_jobs = two_jobs
  @dependents_amount = dependents_amount
  @other_income = other_income
  @deductions = deductions
end

Instance Method Details

#==(other) ⇒ Object



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/gusto_embedded/models/shared/employee_federal_tax_rev2020.rb', line 58

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 @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 @extra_withholding == other.extra_withholding
  return false unless @two_jobs == other.two_jobs
  return false unless @dependents_amount == other.dependents_amount
  return false unless @other_income == other.other_income
  return false unless @deductions == other.deductions
  true
end