Class: GustoEmbedded::Models::Shared::PayrollShowReimbursements

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(amount:, description: nil, recurring: nil, uuid: nil) ⇒ PayrollShowReimbursements

Returns a new instance of PayrollShowReimbursements.



25
26
27
28
29
30
# File 'lib/gusto_embedded/models/shared/payroll_show_reimbursements.rb', line 25

def initialize(amount:, description: nil, recurring: nil, uuid: nil)
  @amount = amount
  @description = description
  @recurring = recurring
  @uuid = uuid
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/gusto_embedded/models/shared/payroll_show_reimbursements.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @amount == other.amount
  return false unless @description == other.description
  return false unless @recurring == other.recurring
  return false unless @uuid == other.uuid
  true
end