Class: MtGox::Bid
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Offer
Instance Method Summary collapse
- #eprice ⇒ Object
-
#initialize(price = nil, amount = nil) ⇒ Bid
constructor
A new instance of Bid.
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
#eprice ⇒ Object
11 12 13 |
# File 'lib/mtgox/bid.rb', line 11 def eprice price * (1 - MtGox.commission) end |