Class: BinanceClient::AssetBalance

Inherits:
Object
  • Object
show all
Defined in:
lib/binance_client/models/asset_balance.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(asset:, free:, locked:) ⇒ AssetBalance

Returns a new instance of AssetBalance.



6
7
8
9
10
# File 'lib/binance_client/models/asset_balance.rb', line 6

def initialize(asset:, free:, locked:)
  @asset = asset
  @free = free
  @locked = locked
end

Instance Attribute Details

#assetObject (readonly)

Returns the value of attribute asset.



4
5
6
# File 'lib/binance_client/models/asset_balance.rb', line 4

def asset
  @asset
end

Instance Method Details

#freeObject



12
13
14
# File 'lib/binance_client/models/asset_balance.rb', line 12

def free
  @free.to_d
end

#lockedObject



16
17
18
# File 'lib/binance_client/models/asset_balance.rb', line 16

def locked
  @locked.to_d
end