Sha256: fd817f5a4977b4efc1e62ba3c2f2a9ea99aa23cb7dafddb15d64c114f3c859bb
Contents?: true
Size: 490 Bytes
Versions: 2
Compression:
Stored size: 490 Bytes
Contents
# frozen_string_literal: true require "milight/v6/command" require "milight/v6/all" require "milight/v6/zone" module Milight module V6 class Controller def initialize(host, port = 5987) @command = Milight::V6::Command.new(host, port) end # Select all zones. def all Milight::V6::All.new(@command) end # Select a specific zone. def zone(zone_id) Milight::V6::Zone.new(@command, zone_id) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
milight-v6-0.1.1 | lib/milight/v6/controller.rb |
milight-v6-0.1.0 | lib/milight/v6/controller.rb |