Class: Huebot::Bot
- Inherits:
-
Object
- Object
- Huebot::Bot
- Defined in:
- lib/huebot/bot.rb
Constant Summary collapse
- Error =
Class.new(StandardError)
Instance Method Summary collapse
- #execute(program) ⇒ Object
-
#initialize(device_mapper) ⇒ Bot
constructor
A new instance of Bot.
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 |