class RuBittrex::Summary

Attributes

high[R]
low[R]
percent_change[R]
quote_volume[R]
raw[R]
symbol[R]
updated_at[R]
volume[R]

Public Class Methods

all(params = {}) click to toggle source
# File lib/ru_bittrex/summary.rb, line 20
def self.all(params = {})
  collection _get('markets/summaries', params)
end
get(market, params = {}) click to toggle source
# File lib/ru_bittrex/summary.rb, line 24
def self.get(market, params = {})
  new _get("markets/#{market}/summary", params)
end
new(attrs = {}) click to toggle source
# File lib/ru_bittrex/summary.rb, line 9
def initialize(attrs = {})
  @symbol         = attrs["symbol"]
  @high           = attrs["high"]
  @low            = attrs["low"]
  @volume         = attrs["volume"]
  @quote_volume   = attrs["quoteVolume"]
  @percent_change = attrs["percentChange"]
  @updated_at     = extract_timestamp(attrs["updatedAt"])
  @raw            = attrs
end