Class: GustoEmbedded::Models::Shared::PaymentMethodBankAccount

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

Overview

Representation of a bank account item

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(uuid:, name: nil, hidden_account_number: nil, priority: nil, split_amount: nil) ⇒ PaymentMethodBankAccount

Returns a new instance of PaymentMethodBankAccount.



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

def initialize(uuid:, name: nil, hidden_account_number: nil, priority: nil, split_amount: nil)
  @uuid = uuid
  @name = name
  @hidden_account_number = 
  @priority = priority
  @split_amount = split_amount
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @name == other.name
  return false unless @hidden_account_number == other.
  return false unless @priority == other.priority
  return false unless @split_amount == other.split_amount
  true
end