Class: Quote

Inherits:
StockAttr show all
Defined in:
lib/quote.rb

Instance Attribute Summary

Attributes inherited from StockAttr

#stock

Instance Method Summary collapse

Methods inherited from StockAttr

#initialize

Methods inherited from Table

create_table_columns, #initialize, #populate_table_columns

Constructor Details

This class inherits a constructor from StockAttr

Instance Method Details

#displayObject



3
4
5
6
7
8
9
10
11
# File 'lib/quote.rb', line 3

def display
	puts "Current:  #{price} #{change}(#{change_pct})"
	puts "Open:     #{open}"
	puts "Volume:   #{volume}"
	puts "Avg Vol:  #{volume_avg}"
	puts "Mkt Cap:  #{mkt_cap}"
	puts "P/E(ttm): #{pe_ttm}"
	puts "Yield:    #{div_yld}%"
end