class RuBittrex::Deposit

Attributes

address[R]
address_tag[R]
completed_at[R]
confirmations[R]
currency[R]
id[R]
quantity[R]
raw[R]
source[R]
status[R]
tx_id[R]
updated_at[R]

Public Class Methods

closed(params = {}) click to toggle source
# File lib/ru_bittrex/deposit.rb, line 25
def self.closed(params = {})
  collection _get('deposits/closed', params)
end
get(id, params = {}) click to toggle source
# File lib/ru_bittrex/deposit.rb, line 33
def self.get(id, params = {})
  new _get("deposits/#{id}", params)
end
new(attrs = {}) click to toggle source
# File lib/ru_bittrex/deposit.rb, line 10
def initialize(attrs = {})
  @id            = attrs["id"]
  @currency      = attrs["currencySymbol"]
  @quantity      = attrs["quantity"]
  @address       = attrs["cryptoAddress"]
  @address_tag   = attrs["cryptoAddressTag"]
  @tx_id         = attrs["txId"]
  @confirmations = attrs["confirmations"]
  @updated_at    = extract_timestamp(attrs["updatedAt"])
  @completed_at  = extract_timestamp(attrs["completedAt"])
  @status        = attrs["status"]
  @source        = attrs["source"]
  @raw           = attrs
end
open(params = {}) click to toggle source
# File lib/ru_bittrex/deposit.rb, line 29
def self.open(params = {})
  collection _get('deposits/open', params)
end