Class: TapState
- Inherits:
-
SensorState
- Object
- SensorState
- TapState
- Defined in:
- lib/lights/sensor.rb
Instance Attribute Summary collapse
-
#button_event ⇒ Object
readonly
Returns the value of attribute button_event.
Attributes inherited from SensorState
Instance Method Summary collapse
-
#initialize(data) ⇒ TapState
constructor
A new instance of TapState.
Constructor Details
#initialize(data) ⇒ TapState
Returns a new instance of TapState.
11 12 13 14 |
# File 'lib/lights/sensor.rb', line 11 def initialize(data) = data["button_event"] super end |
Instance Attribute Details
#button_event ⇒ Object (readonly)
Returns the value of attribute button_event.
10 11 12 |
# File 'lib/lights/sensor.rb', line 10 def end |