Class: ItBitSDK::Wallet::Balance

Inherits:
Object
  • Object
show all
Defined in:
lib/it_bit_sdk/domain/wallet.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params:) ⇒ Balance

Returns a new instance of Balance.



8
9
10
11
12
# File 'lib/it_bit_sdk/domain/wallet.rb', line 8

def initialize(params:)
  @available_balance  = params['availableBalance'].to_f
  @total_balance      = params['totalBalance'].to_f
  @currency           = params['currency']
end

Instance Attribute Details

#available_balanceObject

Returns the value of attribute available_balance.



6
7
8
# File 'lib/it_bit_sdk/domain/wallet.rb', line 6

def available_balance
  @available_balance
end

#currencyObject

Returns the value of attribute currency.



6
7
8
# File 'lib/it_bit_sdk/domain/wallet.rb', line 6

def currency
  @currency
end

#total_balanceObject

Returns the value of attribute total_balance.



6
7
8
# File 'lib/it_bit_sdk/domain/wallet.rb', line 6

def total_balance
  @total_balance
end