class RuBittrex::Currency

Attributes

address[R]
coin_type[R]
logo_url[R]
min_confirmations[R]
name[R]
notice[R]
prohibited_in[R]
raw[R]
status[R]
symbol[R]
terms[R]
terms_of_service[R]
tx_fee[R]

Public Class Methods

all(params = {}) click to toggle source
# File lib/ru_bittrex/currency.rb, line 24
def self.all(params = {})
  collection _get('currencies', params)
end
get(currency, params = {}) click to toggle source
# File lib/ru_bittrex/currency.rb, line 28
def self.get(currency, params = {})
  new _get("currencies/#{currency}", params)
end
new(attrs = {}) click to toggle source
# File lib/ru_bittrex/currency.rb, line 9
def initialize(attrs = {})
  @symbol            = attrs["symbol"]
  @name              = attrs["name"]
  @coin_type         = attrs["coinType"]
  @status            = attrs["status"]
  @min_confirmations = attrs["minConfirmations"]
  @notice            = attrs["notice"]
  @tx_fee            = attrs["txFee"]
  @logo_url          = attrs["logoUrl"]
  @prohibited_in     = attrs["prohibitedIn"]
  @address           = attrs["baseAddress"]
  @terms_of_service  = attrs["associatedTermsOfService"]
  @raw               = attrs
end