Class: GustoEmbedded::Models::Shared::PayrollShowDeductions

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(name: nil, amount: nil, amount_type: nil, uuid: nil, updatable_via_payroll: nil) ⇒ PayrollShowDeductions

Returns a new instance of PayrollShowDeductions.



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

def initialize(name: nil, amount: nil, amount_type: nil, uuid: nil, updatable_via_payroll: nil)
  @name = name
  @amount = amount
  @amount_type = amount_type
  @uuid = uuid
  @updatable_via_payroll = updatable_via_payroll
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @name == other.name
  return false unless @amount == other.amount
  return false unless @amount_type == other.amount_type
  return false unless @uuid == other.uuid
  return false unless @updatable_via_payroll == other.updatable_via_payroll
  true
end