Class: Blinkman::Adapter::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/blinkman/adapter/base.rb

Direct Known Subclasses

Shell

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#botObject (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

#listenObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/blinkman/adapter/base.rb', line 15

def listen
  raise NotImplementedError.new
end