lib/hue/light.rb in hue-0.1.5 vs lib/hue/light.rb in hue-0.2.0

- old
+ new

@@ -17,20 +17,20 @@ # A unique, editable name given to the light. attr_accessor :name # Hue of the light. This is a wrapping value between 0 and 65535. # Both 0 and 65535 are red, 25500 is green and 46920 is blue. - attr_accessor :hue + attr_reader :hue # Saturation of the light. 255 is the most saturated (colored) # and 0 is the least saturated (white). - attr_accessor :saturation + attr_reader :saturation # Brightness of the light. This is a scale from the minimum # brightness the light is capable of, 0, to the maximum capable # brightness, 255. Note a brightness of 0 is not off. - attr_accessor :brightness + attr_reader :brightness # The x coordinate of a color in CIE color space. Between 0 and 1. # # @see http://developers.meethue.com/coreconcepts.html#color_gets_more_complicated attr_reader :x @@ -42,11 +42,11 @@ # The Mired Color temperature of the light. 2012 connected lights # are capable of 153 (6500K) to 500 (2000K). # # @see http://en.wikipedia.org/wiki/Mired - attr_accessor :color_temperature + attr_reader :color_temperature # The alert effect, which is a temporary change to the bulb’s state. # This can take one of the following values: # * `none` – The light is not performing an alert effect. # * `select` – The light is performing one breathe cycle. @@ -56,15 +56,15 @@ # Note that in version 1.0 this contains the last alert sent to the # light and not its current state. This will be changed to contain the # current state in an upcoming patch. # # @see http://developers.meethue.com/coreconcepts.html#some_extra_fun_stuff - attr_accessor :alert + attr_reader :alert # The dynamic effect of the light, can either be `none` or # `colorloop`. If set to colorloop, the light will cycle through # all hues using the current brightness and saturation settings. - attr_accessor :effect + attr_reader :effect # Indicates the color mode in which the light is working, this is # the last command type it received. Values are `hs` for Hue and # Saturation, `xy` for XY and `ct` for Color Temperature. This # parameter is only present when the light supports at least one