Class: Moov::Models::Components::BankAccountIntegration

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/bankaccountintegration.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(holder_name:, holder_type:, account_number:, bank_account_type:, routing_number:) ⇒ BankAccountIntegration

Returns a new instance of BankAccountIntegration.



28
29
30
31
32
33
34
# File 'lib/moov/models/components/bankaccountintegration.rb', line 28

def initialize(holder_name:, holder_type:, account_number:, bank_account_type:, routing_number:)
  @holder_name = holder_name
  @holder_type = holder_type
  @account_number = 
   = 
  @routing_number = routing_number
end

Instance Method Details

#==(other) ⇒ Object



37
38
39
40
41
42
43
44
45
# File 'lib/moov/models/components/bankaccountintegration.rb', line 37

def ==(other)
  return false unless other.is_a? self.class
  return false unless @holder_name == other.holder_name
  return false unless @holder_type == other.holder_type
  return false unless @account_number == other.
  return false unless  == other.
  return false unless @routing_number == other.routing_number
  true
end