Class: Repp::Handler::Slack::SlackReceive

Inherits:
Event::Receive show all
Defined in:
lib/repp/handler/slack.rb

Constant Summary

Constants included from Event::Attributes

Event::Attributes::EVENT_TYPE, Event::Attributes::RECERVED_WORDS

Instance Method Summary collapse

Methods inherited from Event::Base

#initialize

Methods included from Event::Attributes

#event_type, #interface

Constructor Details

This class inherits a constructor from Repp::Event::Base

Instance Method Details

#bot=(switch) ⇒ Object



12
# File 'lib/repp/handler/slack.rb', line 12

def bot=(switch); @is_bot = switch; end

#bot?Boolean

Returns:

  • (Boolean)


11
# File 'lib/repp/handler/slack.rb', line 11

def bot?; !!@is_bot;  end