Class: Ruflet::Events::MultiTapEvent

Inherits:
BasePayload show all
Defined in:
lib/ruflet_ui/ruflet/events/gesture_events.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BasePayload

duration, offset, offset_pair, pick, stringify_keys

Constructor Details

#initialize(correct_touches:) ⇒ MultiTapEvent

Returns a new instance of MultiTapEvent.



217
218
219
# File 'lib/ruflet_ui/ruflet/events/gesture_events.rb', line 217

def initialize(correct_touches:)
  @correct_touches = correct_touches
end

Instance Attribute Details

#correct_touchesObject (readonly)

Returns the value of attribute correct_touches.



215
216
217
# File 'lib/ruflet_ui/ruflet/events/gesture_events.rb', line 215

def correct_touches
  @correct_touches
end

Class Method Details

.from_data(data) ⇒ Object



221
222
223
# File 'lib/ruflet_ui/ruflet/events/gesture_events.rb', line 221

def self.from_data(data)
  new(correct_touches: pick(data, "ct", "correct_touches"))
end