Readme.markdown in hue-0.1.5 vs Readme.markdown in hue-0.2.0
- old
+ new
@@ -62,10 +62,10 @@
group = client.groups.first
group = client.group(1)
# Accessing group lights
group.lights.first.on!
-group.lights.each { |light| light.hue = rand(0...65535) }
+group.lights.each { |light| light.hue = rand(Hue::Light::HUE_RANGE) }
# Creating groups
group = client.group # Don't specify an ID
group.name = "My Group"
group.lights = [3, 4] # Can specify lights by ID