class Milight::Controller

Attributes

commander[R]

Public Class Methods

new(ip_address, port = 8899) click to toggle source
# File lib/milight/controller.rb, line 10
def initialize(ip_address, port = 8899)
  @commander = Milight::Commander.new ip_address, port
end

Public Instance Methods

all() click to toggle source
# File lib/milight/controller.rb, line 14
def all
  Milight::RgbwAll.new(@commander)
end
group(channel) click to toggle source
# File lib/milight/controller.rb, line 18
def group(channel)
  Milight::RgbwGroup.new(@commander, channel)
end