Module: SlackRubyBot::Config
Constant Summary collapse
- ATTRS =
%i[token url aliases user user_id team team_id allow_bot_messages allow_message_loops logger].freeze
Instance Method Summary collapse
Instance Method Details
#allow_bot_messages? ⇒ Boolean
10 11 12 |
# File 'lib/slack-ruby-bot/config.rb', line 10 def !! end |
#allow_message_loops? ⇒ Boolean
14 15 16 |
# File 'lib/slack-ruby-bot/config.rb', line 14 def !! end |
#reset! ⇒ Object
18 19 20 |
# File 'lib/slack-ruby-bot/config.rb', line 18 def reset! ATTRS.each { |attr| send("#{attr}=", nil) } end |