Class: MtGox::Models::Trade

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

Instance Attribute Summary

Attributes inherited from Model

#attributes

Instance Method Summary collapse

Methods inherited from Model

define_property, #initialize, prop, #set_attributes

Constructor Details

This class inherits a constructor from MtGox::Models::Model

Instance Method Details

#to_s(with_date = nil) ⇒ Object



20
21
22
23
24
# File 'lib/mtgox/models/trade.rb', line 20

def to_s with_date=nil
  (with_date ? "#{@date.strftime('%H:%M:%S')} " : '') +
      "<Trade: #{ amount.round(3) } at #{ price.round(3) }"+
      " #{price_currency}/#{item} (#{trade_type}) #{ properties } #{ primary } >"
end