Class: BinanceClient::Transfer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_hash:) ⇒ Transfer

Returns a new instance of Transfer.



6
7
8
# File 'lib/binance_client/models/transfer.rb', line 6

def initialize(raw_hash:)
  @raw_hash = raw_hash
end

Instance Attribute Details

#raw_hashObject (readonly)

Returns the value of attribute raw_hash.



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

def raw_hash
  @raw_hash
end

Instance Method Details

#assetObject



18
19
20
# File 'lib/binance_client/models/transfer.rb', line 18

def asset
  @asset ||= raw_hash["asset"]
end

#client_tran_idObject



34
35
36
# File 'lib/binance_client/models/transfer.rb', line 34

def client_tran_id
  @client_tran_id ||= raw_hash["clientTranId"]
end

#from_idObject



10
11
12
# File 'lib/binance_client/models/transfer.rb', line 10

def from_id
  @from_id ||= raw_hash["fromId"]
end

#qtyObject



22
23
24
# File 'lib/binance_client/models/transfer.rb', line 22

def qty
  @qty ||= raw_hash["qty"]
end

#statusObject



38
39
40
# File 'lib/binance_client/models/transfer.rb', line 38

def status
  @status ||= raw_hash["status"]
end

#timeObject



26
27
28
# File 'lib/binance_client/models/transfer.rb', line 26

def time
  @time ||= raw_hash["time"]
end

#to_idObject



14
15
16
# File 'lib/binance_client/models/transfer.rb', line 14

def to_id
  @to_id ||= raw_hash["toId"]
end

#txn_idObject



30
31
32
# File 'lib/binance_client/models/transfer.rb', line 30

def txn_id
  @txn_id ||= raw_hash["txnId"]
end