Class: MtGox::Bid

Inherits:
Offer
  • Object
show all
Defined in:
lib/mtgox/bid.rb

Direct Known Subclasses

MaxBid

Instance Attribute Summary

Attributes inherited from Offer

#amount, #price

Instance Method Summary collapse

Constructor Details

#initialize(price = nil, amount = nil) ⇒ Bid

Returns a new instance of Bid.



6
7
8
9
# File 'lib/mtgox/bid.rb', line 6

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

Instance Method Details

#epriceObject



11
12
13
# File 'lib/mtgox/bid.rb', line 11

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