Module: QbertBot::Plugin
- Defined in:
- lib/qbert_bot/plugin.rb
Instance Attribute Summary collapse
-
#bot ⇒ Object
Returns the value of attribute bot.
-
#router ⇒ Object
Returns the value of attribute router.
-
#scheduler ⇒ Object
Returns the value of attribute scheduler.
-
#slack ⇒ Object
Returns the value of attribute slack.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#bot ⇒ Object
Returns the value of attribute bot.
13 14 15 |
# File 'lib/qbert_bot/plugin.rb', line 13 def bot @bot end |
#router ⇒ Object
Returns the value of attribute router.
13 14 15 |
# File 'lib/qbert_bot/plugin.rb', line 13 def router @router end |
#scheduler ⇒ Object
Returns the value of attribute scheduler.
13 14 15 |
# File 'lib/qbert_bot/plugin.rb', line 13 def scheduler @scheduler end |
#slack ⇒ Object
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 |
.plugins ⇒ Object
9 10 11 |
# File 'lib/qbert_bot/plugin.rb', line 9 def self.plugins @plugins end |
Instance Method Details
#register ⇒ Object
14 15 |
# File 'lib/qbert_bot/plugin.rb', line 14 def register end |