Class: Moov::Models::Components::SweepConfig
- Inherits:
-
Object
- Object
- Moov::Models::Components::SweepConfig
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/sweepconfig.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(sweep_config_id:, wallet_id:, status:, push_payment_method:, pull_payment_method:, created_on:, updated_on:, minimum_balance: nil, statement_descriptor: nil, locked_fields: nil) ⇒ SweepConfig
constructor
A new instance of SweepConfig.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(sweep_config_id:, wallet_id:, status:, push_payment_method:, pull_payment_method:, created_on:, updated_on:, minimum_balance: nil, statement_descriptor: nil, locked_fields: nil) ⇒ SweepConfig
Returns a new instance of SweepConfig.
40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/moov/models/components/sweepconfig.rb', line 40 def initialize(sweep_config_id:, wallet_id:, status:, push_payment_method:, pull_payment_method:, created_on:, updated_on:, minimum_balance: nil, statement_descriptor: nil, locked_fields: nil) @sweep_config_id = sweep_config_id @wallet_id = wallet_id @status = status @push_payment_method = push_payment_method @pull_payment_method = pull_payment_method @created_on = created_on @updated_on = updated_on @minimum_balance = minimum_balance @statement_descriptor = statement_descriptor @locked_fields = locked_fields end |
Instance Method Details
#==(other) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/moov/models/components/sweepconfig.rb', line 54 def ==(other) return false unless other.is_a? self.class return false unless @sweep_config_id == other.sweep_config_id return false unless @wallet_id == other.wallet_id return false unless @status == other.status return false unless @push_payment_method == other.push_payment_method return false unless @pull_payment_method == other.pull_payment_method return false unless @created_on == other.created_on return false unless @updated_on == other.updated_on return false unless @minimum_balance == other.minimum_balance return false unless @statement_descriptor == other.statement_descriptor return false unless @locked_fields == other.locked_fields true end |