Class: MtGox::Models::Depth

Inherits:
Model
  • Object
show all
Defined in:
lib/mtgox/models/depth.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_sObject



16
17
18
19
# File 'lib/mtgox/models/depth.rb', line 16

def to_s
  "<Depth: vol change #{ vol.round(2) } at #{ price.round(3) }"+
      "(#{type}) #{currency}/#{item} >"
end