module Hue::EditableState
Public Instance Methods
off!()
click to toggle source
# File lib/hue/editable_state.rb, line 11 def off! self.on = false end
on!()
click to toggle source
# File lib/hue/editable_state.rb, line 7 def on! self.on = true end
on?()
click to toggle source
# File lib/hue/editable_state.rb, line 3 def on? @state['on'] end
set_xy(x, y)
click to toggle source
# File lib/hue/editable_state.rb, line 22 def set_xy(x, y) set_state({:xy => [x, y]}) @x, @y = x, y end