Class: Moov::Models::Components::Sweep
- Inherits:
-
Object
- Object
- Moov::Models::Components::Sweep
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/sweep.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(sweep_id:, status:, accrued_amount:, currency:, accrual_started_on:, residual_balance: nil, accrual_ended_on: nil, push_payment_method_id: nil, pull_payment_method_id: nil, transfer_id: nil, transfer_amount: nil, statement_descriptor: nil, subtotals: nil) ⇒ Sweep
constructor
A new instance of Sweep.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(sweep_id:, status:, accrued_amount:, currency:, accrual_started_on:, residual_balance: nil, accrual_ended_on: nil, push_payment_method_id: nil, pull_payment_method_id: nil, transfer_id: nil, transfer_amount: nil, statement_descriptor: nil, subtotals: nil) ⇒ Sweep
Returns a new instance of Sweep.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/moov/models/components/sweep.rb', line 44 def initialize(sweep_id:, status:, accrued_amount:, currency:, accrual_started_on:, residual_balance: nil, accrual_ended_on: nil, push_payment_method_id: nil, pull_payment_method_id: nil, transfer_id: nil, transfer_amount: nil, statement_descriptor: nil, subtotals: nil) @sweep_id = sweep_id @status = status @accrued_amount = accrued_amount @currency = currency @accrual_started_on = accrual_started_on @residual_balance = residual_balance @accrual_ended_on = accrual_ended_on @push_payment_method_id = push_payment_method_id @pull_payment_method_id = pull_payment_method_id @transfer_id = transfer_id @transfer_amount = transfer_amount @statement_descriptor = statement_descriptor @subtotals = subtotals end |
Instance Method Details
#==(other) ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/moov/models/components/sweep.rb', line 61 def ==(other) return false unless other.is_a? self.class return false unless @sweep_id == other.sweep_id return false unless @status == other.status return false unless @accrued_amount == other.accrued_amount return false unless @currency == other.currency return false unless @accrual_started_on == other.accrual_started_on return false unless @residual_balance == other.residual_balance return false unless @accrual_ended_on == other.accrual_ended_on 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 @transfer_id == other.transfer_id return false unless @transfer_amount == other.transfer_amount return false unless @statement_descriptor == other.statement_descriptor return false unless @subtotals == other.subtotals true end |