Class: GustoEmbedded::Models::Shared::TaxLiabilitiesSelections

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

Overview

The representation of tax liabilities selections.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(tax_id: nil, tax_name: nil, possible_liabilities: nil, description: nil, last_unpaid_external_payroll_uuid: nil) ⇒ TaxLiabilitiesSelections

Returns a new instance of TaxLiabilitiesSelections.



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

def initialize(tax_id: nil, tax_name: nil, possible_liabilities: nil, description: nil, last_unpaid_external_payroll_uuid: nil)
  @tax_id = tax_id
  @tax_name = tax_name
  @possible_liabilities = possible_liabilities
  @description = description
  @last_unpaid_external_payroll_uuid = last_unpaid_external_payroll_uuid
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @tax_id == other.tax_id
  return false unless @tax_name == other.tax_name
  return false unless @possible_liabilities == other.possible_liabilities
  return false unless @description == other.description
  return false unless @last_unpaid_external_payroll_uuid == other.last_unpaid_external_payroll_uuid
  true
end