Module: Medici

Extended by:
Medici
Included in:
Medici
Defined in:
lib/medici.rb,
lib/medici/stock.rb,
lib/medici/errors.rb,
lib/medici/historical.rb

Defined Under Namespace

Classes: Historical, HistoricalDataError, Stock, StockSymbolError

Instance Method Summary collapse

Instance Method Details

#historical(symbol, start_date = nil, end_date = nil) ⇒ Object



15
16
17
# File 'lib/medici.rb', line 15

def historical(symbol, start_date = nil, end_date = nil)
  Historical.quote(symbol, start_date, end_date)
end

#quote(symbol) ⇒ Object



11
12
13
# File 'lib/medici.rb', line 11

def quote(symbol)
  Stock.quote(symbol)
end

#quotes(symbols) ⇒ Object



7
8
9
# File 'lib/medici.rb', line 7

def quotes(symbols)
  Stock.quotes(symbols)
end