class RuBittrex::Ticker
Attributes
ask_rate[R]
bid_rate[R]
last_rate[R]
raw[R]
symbol[R]
Public Class Methods
all(params = {})
click to toggle source
# File lib/ru_bittrex/ticker.rb, line 16 def self.all(params = {}) collection _get('markets/tickers', params) end
get(market, params = {})
click to toggle source
# File lib/ru_bittrex/ticker.rb, line 20 def self.get(market, params = {}) new _get("markets/#{market}/ticker", params) end
new(attrs = {})
click to toggle source
# File lib/ru_bittrex/ticker.rb, line 8 def initialize(attrs = {}) @symbol = attrs["symbol"] @last_rate = attrs["lastTradeRate"] @bid_rate = attrs["bidRate"] @ask_rate = attrs["askRate"] @raw = attrs end