Class: TapState

Inherits:
SensorState show all
Defined in:
lib/lights/sensor.rb

Instance Attribute Summary collapse

Attributes inherited from SensorState

#data, #last_updated

Instance Method Summary collapse

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)
  @button_event = data["button_event"]
  super
end

Instance Attribute Details

#button_eventObject (readonly)

Returns the value of attribute button_event.



10
11
12
# File 'lib/lights/sensor.rb', line 10

def button_event
  @button_event
end