Class: Moov::Models::Components::BankAccount
- Inherits:
-
Object
- Object
- Moov::Models::Components::BankAccount
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/bankaccount.rb
Overview
Describes a bank account linked to a Moov account.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(bank_account_id:, fingerprint:, status:, holder_name:, holder_type:, bank_name:, bank_account_type:, routing_number:, last_four_account_number:, updated_on:, status_reason: nil, exception_details: nil, payment_methods: nil) ⇒ BankAccount
constructor
A new instance of BankAccount.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(bank_account_id:, fingerprint:, status:, holder_name:, holder_type:, bank_name:, bank_account_type:, routing_number:, last_four_account_number:, updated_on:, status_reason: nil, exception_details: nil, payment_methods: nil) ⇒ BankAccount
Returns a new instance of BankAccount.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/moov/models/components/bankaccount.rb', line 49 def initialize(bank_account_id:, fingerprint:, status:, holder_name:, holder_type:, bank_name:, bank_account_type:, routing_number:, last_four_account_number:, updated_on:, status_reason: nil, exception_details: nil, payment_methods: nil) @bank_account_id = bank_account_id @fingerprint = fingerprint @status = status @holder_name = holder_name @holder_type = holder_type @bank_name = bank_name @bank_account_type = bank_account_type @routing_number = routing_number @last_four_account_number = last_four_account_number @updated_on = updated_on @status_reason = status_reason @exception_details = exception_details @payment_methods = payment_methods end |
Instance Method Details
#==(other) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/moov/models/components/bankaccount.rb', line 66 def ==(other) return false unless other.is_a? self.class return false unless @bank_account_id == other.bank_account_id return false unless @fingerprint == other.fingerprint return false unless @status == other.status return false unless @holder_name == other.holder_name return false unless @holder_type == other.holder_type return false unless @bank_name == other.bank_name return false unless @bank_account_type == other.bank_account_type return false unless @routing_number == other.routing_number return false unless @last_four_account_number == other.last_four_account_number return false unless @updated_on == other.updated_on return false unless @status_reason == other.status_reason return false unless @exception_details == other.exception_details return false unless @payment_methods == other.payment_methods true end |