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

#asset ⇒ Object (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

#free ⇒ Object



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

def free
  @free.to_d
end

#locked ⇒ Object



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

def locked
  @locked.to_d
end