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.3"
Class Method Summary collapse
- .notify(body: SlackBot.body, bot_name: SlackBot.bot_name, channel: SlackBot.channel) ⇒ Object
- .setup {|_self| ... } ⇒ Object
Class Method Details
.notify(body: SlackBot.body, bot_name: SlackBot.bot_name, channel: SlackBot.channel) ⇒ Object
36 37 38 |
# File 'lib/slack_bot.rb', line 36 def self.notify(body: SlackBot.body, bot_name: SlackBot.bot_name, channel: SlackBot.channel) Notify.execute(body, bot_name, channel) end |
.setup {|_self| ... } ⇒ Object
32 33 34 |
# File 'lib/slack_bot.rb', line 32 def self.setup yield self if block_given? end |