Class: CnnQuoteOnly

Inherits:
QuoteOnly show all
Defined in:
lib/quote-only.rb

Instance Attribute Summary

Attributes inherited from QuoteOnly

#css, #friendly_name, #quote, #symbol, #url

Instance Method Summary collapse

Methods inherited from QuoteOnly

#match, #to_s

Constructor Details

#initialize(options) ⇒ CnnQuoteOnly

Returns a new instance of CnnQuoteOnly.



31
32
33
34
35
36
# File 'lib/quote-only.rb', line 31

def initialize(options)
	super(options)
	@css = 'td.wsod_last > span'
	@url = 'http://money.cnn.com/quote/quote.html?exHours=off&symb=' + @symbol
	match()
end