Class: Group
- Inherits:
-
Object
- Object
- Group
- Defined in:
- lib/lights/group.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#lights ⇒ Object
readonly
Returns the value of attribute lights.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #action ⇒ Object
-
#initialize(id, data = {}) ⇒ Group
constructor
A new instance of Group.
Constructor Details
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/lights/group.rb', line 3 def data @data end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/lights/group.rb', line 3 def id @id end |
#lights ⇒ Object (readonly)
Returns the value of attribute lights.
3 4 5 |
# File 'lib/lights/group.rb', line 3 def lights @lights end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/lights/group.rb', line 3 def name @name end |
Instance Method Details
#action ⇒ Object
12 13 14 |
# File 'lib/lights/group.rb', line 12 def action @action.data end |