Class: MtGox::Models::Ask
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
- #eprice ⇒ Object
-
#initialize(price = nil, amount = nil) ⇒ Ask
constructor
A new instance of Ask.
Methods inherited from Model
define_property, prop, #set_attributes
Constructor Details
#initialize(price = nil, amount = nil) ⇒ Ask
Returns a new instance of Ask.
7 8 9 |
# File 'lib/mtgox/models/ask.rb', line 7 def initialize(price=nil, amount=nil) super :price => price, :amount => amount end |
Instance Method Details
#eprice ⇒ Object
11 12 13 |
# File 'lib/mtgox/models/ask.rb', line 11 def eprice price / (1 - MtGox.commission) end |