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, pick, stringify_keys

Constructor Details

#initialize(correct_touches:) ⇒ MultiTapEvent

Returns a new instance of MultiTapEvent.



118
119
120
# File 'lib/ruflet_ui/ruflet/events/gesture_events.rb', line 118

def initialize(correct_touches:)
  @correct_touches = correct_touches
end

Instance Attribute Details

#correct_touchesObject (readonly)

Returns the value of attribute correct_touches.



116
117
118
# File 'lib/ruflet_ui/ruflet/events/gesture_events.rb', line 116

def correct_touches
  @correct_touches
end

Class Method Details

.from_data(data) ⇒ Object



122
123
124
# File 'lib/ruflet_ui/ruflet/events/gesture_events.rb', line 122

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