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