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