Class: MtGox::Models::MultiTicker

Inherits:
Model
  • Object
show all
Includes:
PriceTicker
Defined in:
lib/mtgox/models/multi_ticker.rb

Overview

Multi-currency Ticker

Instance Attribute Summary

Attributes included from PriceTicker

#previous_price, #price

Attributes inherited from Model

#attributes

Instance Method Summary collapse

Methods included from PriceTicker

#changed?, #down?, #unchanged?, #up?

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



22
23
24
25
26
# File 'lib/mtgox/models/multi_ticker.rb', line 22

def to_s
  "<MultiTicker: #{currency} vol #{ vol.round(2) } last #{ last.round(3) }"+
      " buy #{ buy.round(3) } sell #{ sell.round(3) } low #{ low.round(3) }"+
      " high #{ high.round(3) } avg #{ avg.round(3) } vwap #{ vwap.round(3) } >"
end