class RuBittrex::Balance
Attributes
available[R]
currency[R]
raw[R]
total[R]
updated_at[R]
Public Class Methods
all(params = {})
click to toggle source
# File lib/ru_bittrex/balance.rb, line 16 def self.all(params = {}) collection _get('balances', params) end
get(currency, params = {})
click to toggle source
TODO: check that currency exists
# File lib/ru_bittrex/balance.rb, line 21 def self.get(currency, params = {}) new _get("balances/#{currency}", params) end
new(attrs = {})
click to toggle source
# File lib/ru_bittrex/balance.rb, line 8 def initialize(attrs = {}) @currency = attrs["currencySymbol"] @total = attrs["total"] @available = attrs["available"] @updated_at = extract_timestamp(attrs["updatedAt"]) @raw = attrs end