Sha256: f0f76d1d2e35b900094511e840151016a3f95bcb657485b6a5111c61d2c9c571
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
module Bitstamp class UserTransactions < Bitstamp::Collection def all(options = {}) # Default time delta to an hour options[:timedelta] = "3600" unless options[:timedelta] Bitstamp::Helper.parse_objects! Bitstamp::Net::post("/user_transactions", options).body_str, self.model end def find(order_id) all = self.all index = all.index {|order| order.id.to_i == order_id} return all[index] if index end def create(options = {}) end def update(options={}) end end class UserTransaction < Bitstamp::Model attr_accessor :datetime, :id, :type, :usd, :btc, :fee, :order_id, :btc_usd end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bitstamp-0.2.8 | lib/bitstamp/transactions.rb |