Class: Quandl::Utility::ThorTasks::Notify
- Inherits:
-
Thor
- Object
- Thor
- Quandl::Utility::ThorTasks::Notify
- Defined in:
- lib/quandl/utility/thor_tasks/notify.rb
Overview
Tasks for sending notifications
Instance Method Summary collapse
Instance Method Details
#slack(message, channel) ⇒ Object
28 29 30 31 |
# File 'lib/quandl/utility/thor_tasks/notify.rb', line 28 def slack(, channel) slack_client = Slack::Notifier.new([:webhook], channel: channel, username: [:botname]) slack_client.ping(, icon_emoji: [:emoji]) end |