Class: Huebot::Bot

Inherits:
Object
  • Object
show all
Defined in:
lib/huebot/bot.rb

Constant Summary collapse

Error =
Class.new(StandardError)

Instance Method Summary collapse

Constructor Details

#initialize(device_mapper) ⇒ Bot

Returns a new instance of Bot.



5
6
7
8
# File 'lib/huebot/bot.rb', line 5

def initialize(device_mapper)
  @device_mapper = device_mapper
  #@client = device_mapper.bridge.client
end

Instance Method Details

#execute(program) ⇒ Object



10
11
12
# File 'lib/huebot/bot.rb', line 10

def execute(program)
  exec program.data
end