Sha256: 126b164c4023e3d4e85f8d798a2769611457124f5f7beda0125387a3edd471b9
Contents?: true
Size: 407 Bytes
Versions: 7
Compression:
Stored size: 407 Bytes
Contents
module Bitstamp class Ticker < Bitstamp::Model attr_accessor :last, :high, :low, :volume, :bid, :ask, :timestamp, :vwap, :open def self.from_api Bitstamp::Helper.parse_object!(Bitstamp::Net.get('/ticker').body, self) end def self.method_missing method, *args ticker = self.from_api return ticker.send(method) if ticker.respond_to? method super end end end
Version data entries
7 entries across 7 versions & 1 rubygems