Class: BinanceClient::Transfer
- Inherits:
-
Object
- Object
- BinanceClient::Transfer
- Defined in:
- lib/binance_client/models/transfer.rb
Instance Attribute Summary collapse
-
#raw_hash ⇒ Object
readonly
Returns the value of attribute raw_hash.
Instance Method Summary collapse
- #asset ⇒ Object
- #client_tran_id ⇒ Object
- #from_id ⇒ Object
-
#initialize(raw_hash:) ⇒ Transfer
constructor
A new instance of Transfer.
- #qty ⇒ Object
- #status ⇒ Object
- #time ⇒ Object
- #to_id ⇒ Object
- #txn_id ⇒ Object
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_hash ⇒ Object (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
#asset ⇒ Object
18 19 20 |
# File 'lib/binance_client/models/transfer.rb', line 18 def asset @asset ||= raw_hash["asset"] end |
#client_tran_id ⇒ Object
34 35 36 |
# File 'lib/binance_client/models/transfer.rb', line 34 def client_tran_id @client_tran_id ||= raw_hash["clientTranId"] end |
#from_id ⇒ Object
10 11 12 |
# File 'lib/binance_client/models/transfer.rb', line 10 def from_id @from_id ||= raw_hash["fromId"] end |
#qty ⇒ Object
22 23 24 |
# File 'lib/binance_client/models/transfer.rb', line 22 def qty @qty ||= raw_hash["qty"] end |
#status ⇒ Object
38 39 40 |
# File 'lib/binance_client/models/transfer.rb', line 38 def status @status ||= raw_hash["status"] end |
#time ⇒ Object
26 27 28 |
# File 'lib/binance_client/models/transfer.rb', line 26 def time @time ||= raw_hash["time"] end |
#to_id ⇒ Object
14 15 16 |
# File 'lib/binance_client/models/transfer.rb', line 14 def to_id @to_id ||= raw_hash["toId"] end |
#txn_id ⇒ Object
30 31 32 |
# File 'lib/binance_client/models/transfer.rb', line 30 def txn_id @txn_id ||= raw_hash["txnId"] end |