Sha256: 1171bef3ba9df9e09803118ed14d143fe5483c376d9e5b6c32db92d2d3166609
Contents?: true
Size: 404 Bytes
Versions: 8
Compression:
Stored size: 404 Bytes
Contents
module Bitstamp class Ticker < Bitstamp::Model attr_accessor :last, :high, :low, :volume, :bid, :ask, :timestamp, :vwap def self.from_api Bitstamp::Helper.parse_object!(Bitstamp::Net.get('/ticker').body_str, 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
8 entries across 8 versions & 3 rubygems