class Bitstamp::Ticker
Attributes
ask[RW]
bid[RW]
high[RW]
last[RW]
low[RW]
open[RW]
timestamp[RW]
volume[RW]
vwap[RW]
Public Class Methods
from_api(currency_pair = "btcusd")
click to toggle source
# File lib/bitstamp/ticker.rb, line 5 def self.from_api(currency_pair = "btcusd") Bitstamp::Helper.parse_object!(Bitstamp::Net.get("/v2/ticker/#{currency_pair}").to_str, self) end
method_missing(method, *args)
click to toggle source
Calls superclass method
# File lib/bitstamp/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