Sha256: 55148fbd1a1569357ff8ad1e1dc3e1e0f9fd556d10dbf0609f72072a134ae23a

Contents?: true

Size: 241 Bytes

Versions: 11

Compression:

Stored size: 241 Bytes

Contents

require 'mtgox/offer'

module MtGox
  class Bid < Offer

    def initialize(price=nil, amount=nil)
      self.price = price.to_f
      self.amount = amount.to_f
    end

    def eprice
      price * (1 - MtGox.commission)
    end

  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
mtgox-0.8.2 lib/mtgox/bid.rb
mtgox-0.8.1 lib/mtgox/bid.rb
mtgox-0.8.0 lib/mtgox/bid.rb
mtgox-0.7.5 lib/mtgox/bid.rb
mtgox-0.7.4 lib/mtgox/bid.rb
mtgox-0.7.3 lib/mtgox/bid.rb
mt_gox-0.7.3 lib/mtgox/bid.rb
mtgox-0.7.2 lib/mtgox/bid.rb
mtgox-0.7.1 lib/mtgox/bid.rb
mtgox-0.7.0 lib/mtgox/bid.rb
mtgox-0.6.0 lib/mtgox/bid.rb