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