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