Sha256: 72997354ce395e11f72920881e12021869342399d8aba9c123c0c0f65453ac3c
Contents?: true
Size: 428 Bytes
Versions: 3
Compression:
Stored size: 428 Bytes
Contents
require 'mtgox/offer' require 'mtgox/value' module MtGox class Ask < Offer include MtGox::Value def initialize(client, hash = nil) self.client = client if hash self.price = value_currency hash, 'price_int' self.amount = value_bitcoin hash, 'amount_int' self.timestamp = hash['stamp'] end end def eprice price / (1 - self.client.commission) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mtgox-1.1.0 | lib/mtgox/ask.rb |
mtgox-1.0.0 | lib/mtgox/ask.rb |
mtgox-0.9.1 | lib/mtgox/ask.rb |