Class: Moov::Models::Components::RunTransfer

Inherits:
Object
  • Object
show all
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

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 = 
  @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.
  return false unless @source == other.source
  return false unless @description == other.description
  true
end