Class: Moov::Models::Components::OtherCardFees
- Inherits:
-
Object
- Object
- Moov::Models::Components::OtherCardFees
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/othercardfees.rb
Overview
A detailed breakdown of other card-related fees.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(disputes:, card_account_updater:, card_verification:, name_verification:, total:) ⇒ OtherCardFees
constructor
A new instance of OtherCardFees.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(disputes:, card_account_updater:, card_verification:, name_verification:, total:) ⇒ OtherCardFees
Returns a new instance of OtherCardFees.
27 28 29 30 31 32 33 |
# File 'lib/moov/models/components/othercardfees.rb', line 27 def initialize(disputes:, card_account_updater:, card_verification:, name_verification:, total:) @disputes = disputes @card_account_updater = card_account_updater @card_verification = card_verification @name_verification = name_verification @total = total end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/moov/models/components/othercardfees.rb', line 36 def ==(other) return false unless other.is_a? self.class return false unless @disputes == other.disputes return false unless @card_account_updater == other.card_account_updater return false unless @card_verification == other.card_verification return false unless @name_verification == other.name_verification return false unless @total == other.total true end |