Commit 0e73468
Changed files (1)
lib
service
lib/service/stock_service.rb
@@ -5,7 +5,8 @@ class StockService
#http://download.finance.yahoo.com/d/quotes.csv?s=%40%5EDJI,GOOG&f=nsl1op&e=.csv
def fetch(symbol)
- map_from(@http_gateway.get('http://download.finance.yahoo.com/d/quotes.csv', {s: 'GOOG', f: 'nsl1', e: '.csv'}))
+ #map_from(@http_gateway.get('http://download.finance.yahoo.com/d/quotes.csv', {s: 'GOOG', f: 'nsl1', e: '.csv'}))
+ map_from(@http_gateway.get('http://download.finance.yahoo.com/d/quotes.csv', {s: symbol, f: 'nsl1', e: '.csv'}))
end
private