Class: CnnQuoteOnly
Instance Attribute Summary
Attributes inherited from QuoteOnly
#css, #friendly_name, #quote, #symbol, #url
Instance Method Summary collapse
-
#initialize(options) ⇒ CnnQuoteOnly
constructor
A new instance of CnnQuoteOnly.
Methods inherited from QuoteOnly
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() super() @css = 'td.wsod_last > span' @url = 'http://money.cnn.com/quote/quote.html?exHours=off&symb=' + @symbol match() end |