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

Classes: Engine, Notify

Constant Summary collapse

VERSION =
"0.0.6"

Class Method Summary collapse

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

Yields:

  • (_self)

Yield Parameters:

  • _self (SlackBot)

    the object that the method was called on



37
38
39
# File 'lib/slack_bot.rb', line 37

def self.setup
  yield self if block_given?
end