Class: Ruflet::Events::MultiTapEvent
- Inherits:
-
BasePayload
- Object
- BasePayload
- Ruflet::Events::MultiTapEvent
- Defined in:
- lib/ruflet_ui/ruflet/events/gesture_events.rb
Instance Attribute Summary collapse
-
#correct_touches ⇒ Object
readonly
Returns the value of attribute correct_touches.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(correct_touches:) ⇒ MultiTapEvent
constructor
A new instance of MultiTapEvent.
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_touches ⇒ Object (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 |