Class: Fusuma::Plugin::Events::Records::GestureRecord
- Defined in:
- lib/fusuma/plugin/events/records/gesture_record.rb
Overview
Gesture Record
Defined Under Namespace
Classes: Delta
Instance Attribute Summary collapse
-
#delta ⇒ Object
readonly
define gesture format.
-
#finger ⇒ Object
readonly
define gesture format.
-
#gesture ⇒ Object
readonly
define gesture format.
-
#status ⇒ Object
readonly
define gesture format.
Instance Method Summary collapse
-
#initialize(status:, gesture:, finger:, delta:) ⇒ GestureRecord
constructor
A new instance of GestureRecord.
- #to_s ⇒ Object
Methods inherited from Record
Methods inherited from Base
#config_index, #config_param_types, #config_params, inherited, plugins, #shutdown
Constructor Details
#initialize(status:, gesture:, finger:, delta:) ⇒ GestureRecord
Returns a new instance of GestureRecord.
25 26 27 28 29 30 31 |
# File 'lib/fusuma/plugin/events/records/gesture_record.rb', line 25 def initialize(status:, gesture:, finger:, delta:) super() @status = status @gesture = gesture @finger = finger.to_i @delta = delta end |
Instance Attribute Details
#delta ⇒ Object (readonly)
define gesture format
12 13 14 |
# File 'lib/fusuma/plugin/events/records/gesture_record.rb', line 12 def delta @delta end |
#finger ⇒ Object (readonly)
define gesture format
12 13 14 |
# File 'lib/fusuma/plugin/events/records/gesture_record.rb', line 12 def finger @finger end |
#gesture ⇒ Object (readonly)
define gesture format
12 13 14 |
# File 'lib/fusuma/plugin/events/records/gesture_record.rb', line 12 def gesture @gesture end |
#status ⇒ Object (readonly)
define gesture format
12 13 14 |
# File 'lib/fusuma/plugin/events/records/gesture_record.rb', line 12 def status @status end |
Instance Method Details
#to_s ⇒ Object
33 34 35 |
# File 'lib/fusuma/plugin/events/records/gesture_record.rb', line 33 def to_s "#{@gesture}, Finger: #{@finger}, Status: #{@status}" end |