Class: Moov::Models::Components::BankAccountIntegration
- Inherits:
-
Object
- Object
- Moov::Models::Components::BankAccountIntegration
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/bankaccountintegration.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(holder_name:, holder_type:, account_number:, bank_account_type:, routing_number:) ⇒ BankAccountIntegration
constructor
A new instance of BankAccountIntegration.
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 = account_number @bank_account_type = bank_account_type @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.account_number return false unless @bank_account_type == other.bank_account_type return false unless @routing_number == other.routing_number true end |