class Bittrex::Deposit
Attributes
address[R]
confirmations[R]
currency[R]
executed_at[R]
id[R]
quantity[R]
raw[R]
transaction_id[R]
Public Class Methods
all()
click to toggle source
# File lib/bittrex/deposit.rb, line 19 def self.all client.get('account/getdeposithistory').map{|data| new(data) } end
new(attrs = {})
click to toggle source
# File lib/bittrex/deposit.rb, line 8 def initialize(attrs = {}) @id = attrs['Id'] @transaction_id = attrs['TxId'] @address = attrs['CryptoAddress'] @quantity = attrs['Amount'] @currency = attrs['Currency'] @confirmations = attrs['Confirmations'] @executed_at = extract_timestamp(attrs['LastUpdated']) @raw = attrs end
Private Class Methods
client()
click to toggle source
# File lib/bittrex/deposit.rb, line 25 def self.client @client ||= Bittrex.client end