Class: Lita::Handlers::Stock
- Inherits:
-
Handler
- Object
- Handler
- Lita::Handlers::Stock
- Defined in:
- lib/lita/handlers/stock.rb
Instance Method Summary collapse
Instance Method Details
#stock_info(response) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/lita/handlers/stock.rb', line 12 def stock_info(response) symbol = "EPA:ALOCT" data = get_stock_data(symbol) response.reply format_response(data) rescue Exception => e Lita.logger.error("Stock information error: #{e.}") response.reply "Sorry, but there was a problem retrieving octo stock information." end |