Sha256: 685cb24b14fe9bf373c76565d2fc302c0af3ddea4bb0a7689d9c1d5762c485b5
Contents?: true
Size: 315 Bytes
Versions: 2
Compression:
Stored size: 315 Bytes
Contents
require 'mtgox/offer' module MtGox class Order < Offer attr_accessor :id, :date def initialize(order={}) self.id = order['oid'] self.date = Time.at(order['date'].to_i) self.amount = order['amount']['value'].to_f self.price = order['price']['value'].to_f end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mtgox-0.9.1 | lib/mtgox/order.rb |
mtgox-0.9.0 | lib/mtgox/order.rb |