Module: SlackBot
- Defined in:
- lib/slack_bot.rb,
lib/slack_bot/engine.rb,
lib/slack_bot/version.rb,
app/models/slack_bot/notify.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.0.6"
Class Method Summary collapse
- .notify(body: SlackBot.body, bot_name: SlackBot.bot_name, channel: SlackBot.channel, icon_url: SlackBot.icon_url) ⇒ Object
- .setup {|_self| ... } ⇒ Object
Class Method Details
.notify(body: SlackBot.body, bot_name: SlackBot.bot_name, channel: SlackBot.channel, icon_url: SlackBot.icon_url) ⇒ Object
41 42 43 44 |
# File 'lib/slack_bot.rb', line 41 def self.notify(body: SlackBot.body, bot_name: SlackBot.bot_name, channel: SlackBot.channel, icon_url: SlackBot.icon_url) Notify.execute(body, bot_name, channel, icon_url) end |
.setup {|_self| ... } ⇒ Object
37 38 39 |
# File 'lib/slack_bot.rb', line 37 def self.setup yield self if block_given? end |