class GoogleFinance::Company
Google Company
class
Attributes
employees[RW]
name[RW]
prices[RW]
ticker[RW]
Public Class Methods
new(ticker)
click to toggle source
get the ticker with the initialize
# File lib/GoogleFinance/Company.rb, line 16 def initialize(ticker) @ticker = ticker end
Public Instance Methods
get_historical_prices(date_start, date_end)
click to toggle source
load the historical prices iwth the current ticker
# File lib/GoogleFinance/Company.rb, line 45 def get_historical_prices(date_start, date_end) @prices = GoogleFinance::HistoricalPrices.new(@ticker, date_start, date_end) end