Class: Moov::Models::Components::CustomAmountPaymentDetailsError
- Inherits:
-
Object
- Object
- Moov::Models::Components::CustomAmountPaymentDetailsError
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/customamountpaymentdetailserror.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(allowed_methods: nil, card_details: nil, ach_details: nil, metadata: nil, amount_range: nil, suggested_amounts: nil) ⇒ CustomAmountPaymentDetailsError
constructor
A new instance of CustomAmountPaymentDetailsError.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(allowed_methods: nil, card_details: nil, ach_details: nil, metadata: nil, amount_range: nil, suggested_amounts: nil) ⇒ CustomAmountPaymentDetailsError
Returns a new instance of CustomAmountPaymentDetailsError.
29 30 31 32 33 34 35 36 |
# File 'lib/moov/models/components/customamountpaymentdetailserror.rb', line 29 def initialize(allowed_methods: nil, card_details: nil, ach_details: nil, metadata: nil, amount_range: nil, suggested_amounts: nil) @allowed_methods = allowed_methods @card_details = card_details @ach_details = ach_details @metadata = @amount_range = amount_range @suggested_amounts = suggested_amounts end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/moov/models/components/customamountpaymentdetailserror.rb', line 39 def ==(other) return false unless other.is_a? self.class return false unless @allowed_methods == other.allowed_methods return false unless @card_details == other.card_details return false unless @ach_details == other.ach_details return false unless @metadata == other. return false unless @amount_range == other.amount_range return false unless @suggested_amounts == other.suggested_amounts true end |