Class: Moov::Models::Components::BankAccountException
- Inherits:
-
Object
- Object
- Moov::Models::Components::BankAccountException
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/bankaccountexception.rb
Overview
Reason for, and details related to, an ‘errored` or `verificationFailed` bank account status.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(description:, ach_return_code: nil, rtp_rejection_code: nil) ⇒ BankAccountException
constructor
A new instance of BankAccountException.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(description:, ach_return_code: nil, rtp_rejection_code: nil) ⇒ BankAccountException
Returns a new instance of BankAccountException.
53 54 55 56 57 |
# File 'lib/moov/models/components/bankaccountexception.rb', line 53 def initialize(description:, ach_return_code: nil, rtp_rejection_code: nil) @description = description @ach_return_code = ach_return_code @rtp_rejection_code = rtp_rejection_code end |
Instance Method Details
#==(other) ⇒ Object
60 61 62 63 64 65 66 |
# File 'lib/moov/models/components/bankaccountexception.rb', line 60 def ==(other) return false unless other.is_a? self.class return false unless @description == other.description return false unless @ach_return_code == other.ach_return_code return false unless @rtp_rejection_code == other.rtp_rejection_code true end |