Class: Blinkman::Adapter::Base
- Inherits:
-
Object
- Object
- Blinkman::Adapter::Base
- Defined in:
- lib/blinkman/adapter/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#bot ⇒ Object
readonly
Returns the value of attribute bot.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bot) ⇒ Base
constructor
A new instance of Base.
- #listen ⇒ Object
Constructor Details
#initialize(bot) ⇒ Base
Returns a new instance of Base.
11 12 13 |
# File 'lib/blinkman/adapter/base.rb', line 11 def initialize(bot) @bot = bot end |
Instance Attribute Details
#bot ⇒ Object (readonly)
Returns the value of attribute bot.
4 5 6 |
# File 'lib/blinkman/adapter/base.rb', line 4 def bot @bot end |
Class Method Details
.inherited(klass) ⇒ Object
6 7 8 |
# File 'lib/blinkman/adapter/base.rb', line 6 def inherited(klass) Adapter.adapter_classes.push(klass) end |
Instance Method Details
#listen ⇒ Object
15 16 17 |
# File 'lib/blinkman/adapter/base.rb', line 15 def listen raise NotImplementedError.new end |