Module: QbertBot::Plugin

Defined in:
lib/qbert_bot/plugin.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#botObject

Returns the value of attribute bot.



13
14
15
# File 'lib/qbert_bot/plugin.rb', line 13

def bot
  @bot
end

#routerObject

Returns the value of attribute router.



13
14
15
# File 'lib/qbert_bot/plugin.rb', line 13

def router
  @router
end

#schedulerObject

Returns the value of attribute scheduler.



13
14
15
# File 'lib/qbert_bot/plugin.rb', line 13

def scheduler
  @scheduler
end

#slackObject

Returns the value of attribute slack.



13
14
15
# File 'lib/qbert_bot/plugin.rb', line 13

def slack
  @slack
end

Class Method Details

.included(klass) ⇒ Object



3
4
5
6
7
# File 'lib/qbert_bot/plugin.rb', line 3

def self.included(klass)
  @plugins ||= []
  @plugins << klass
  puts "Loading plugin #{klass}"
end

.pluginsObject



9
10
11
# File 'lib/qbert_bot/plugin.rb', line 9

def self.plugins
  @plugins
end

Instance Method Details

#registerObject



14
15
# File 'lib/qbert_bot/plugin.rb', line 14

def register
end