Class: MtGox::Models::Ask

Inherits:
Offer show all
Defined in:
lib/mtgox/models/ask.rb

Direct Known Subclasses

MinAsk

Instance Attribute Summary

Attributes inherited from Model

#attributes

Instance Method Summary collapse

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

#epriceObject



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

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