Class: Moov::Models::Components::MoovFee

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/moovfee.rb

Overview

Moov fee charged to an account involved in a transfer.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(account_id:, transfer_party:, total_amount:, fee_i_ds:) ⇒ MoovFee

Returns a new instance of MoovFee.



26
27
28
29
30
31
# File 'lib/moov/models/components/moovfee.rb', line 26

def initialize(account_id:, transfer_party:, total_amount:, fee_i_ds:)
  @account_id = 
  @transfer_party = transfer_party
  @total_amount = total_amount
  @fee_i_ds = fee_i_ds
end

Instance Method Details

#==(other) ⇒ Object



34
35
36
37
38
39
40
41
# File 'lib/moov/models/components/moovfee.rb', line 34

def ==(other)
  return false unless other.is_a? self.class
  return false unless @account_id == other.
  return false unless @transfer_party == other.transfer_party
  return false unless @total_amount == other.total_amount
  return false unless @fee_i_ds == other.fee_i_ds
  true
end