Class: StockTracker::PastQuote

Inherits:
Object
  • Object
show all
Includes:
YahooFinance
Defined in:
lib/stocktracker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(symbol, date) ⇒ PastQuote



80
81
82
83
84
# File 'lib/stocktracker.rb', line 80

def initialize(symbol, date)
  self.symbol = symbol
  self.date = date
  self.results = yahoo_past_quote
end

Instance Attribute Details

#date ⇒ Object

Returns the value of attribute date.



79
80
81
# File 'lib/stocktracker.rb', line 79

def date
  @date
end

#results ⇒ Object

Returns the value of attribute results.



79
80
81
# File 'lib/stocktracker.rb', line 79

def results
  @results
end

#symbol ⇒ Object

Returns the value of attribute symbol.



79
80
81
# File 'lib/stocktracker.rb', line 79

def symbol
  @symbol
end

Instance Method Details

#cache ⇒ Object



75
76
77
# File 'lib/stocktracker.rb', line 75

def cache
  StockTracker.cache
end