Class: ItBitSDK::Wallet::Balance
- Inherits:
-
Object
- Object
- ItBitSDK::Wallet::Balance
- Defined in:
- lib/it_bit_sdk/domain/wallet.rb
Instance Attribute Summary collapse
-
#available_balance ⇒ Object
Returns the value of attribute available_balance.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#total_balance ⇒ Object
Returns the value of attribute total_balance.
Instance Method Summary collapse
-
#initialize(params:) ⇒ Balance
constructor
A new instance of Balance.
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_balance ⇒ Object
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 |
#currency ⇒ Object
Returns the value of attribute currency.
6 7 8 |
# File 'lib/it_bit_sdk/domain/wallet.rb', line 6 def currency @currency end |
#total_balance ⇒ Object
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 |