class Bitso::Ticker

Attributes

ask[RW]
bid[RW]
high[RW]
last[RW]
low[RW]
timestamp[RW]
volume[RW]
vwap[RW]

Public Class Methods

from_api() click to toggle source
# File lib/bitso/ticker.rb, line 5
def self.from_api
  Bitso::Helper.parse_object!(Bitso::Net.get('/ticker').to_str, self)
end
method_missing(method, *args) click to toggle source
Calls superclass method
# File lib/bitso/ticker.rb, line 9
def self.method_missing method, *args
  ticker = self.from_api
  return ticker.send(method) if ticker.respond_to? method

  super
end