Class: Moov::Models::Components::WalletAvailableBalance

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(currency:, value:, value_decimal:) ⇒ WalletAvailableBalance

Returns a new instance of WalletAvailableBalance.



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

def initialize(currency:, value:, value_decimal:)
  @currency = currency
  @value = value
  @value_decimal = value_decimal
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
# File 'lib/moov/models/components/walletavailablebalance.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @currency == other.currency
  return false unless @value == other.value
  return false unless @value_decimal == other.value_decimal
  true
end