Class: GustoEmbedded::Models::Shared::ContractorPaymentDetailsList

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(contractor_uuid: nil, payment_method: nil, first_name: nil, last_name: nil, split_by: nil, splits: nil) ⇒ ContractorPaymentDetailsList

Returns a new instance of ContractorPaymentDetailsList.



29
30
31
32
33
34
35
36
# File 'lib/gusto_embedded/models/shared/contractor_payment_details_list.rb', line 29

def initialize(contractor_uuid: nil, payment_method: nil, first_name: nil, last_name: nil, split_by: nil, splits: nil)
  @contractor_uuid = contractor_uuid
  @payment_method = payment_method
  @first_name = first_name
  @last_name = last_name
  @split_by = split_by
  @splits = splits
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @contractor_uuid == other.contractor_uuid
  return false unless @payment_method == other.payment_method
  return false unless @first_name == other.first_name
  return false unless @last_name == other.last_name
  return false unless @split_by == other.split_by
  return false unless @splits == other.splits
  true
end