Class: ShakeDeviceTrigger
- Inherits:
-
SensorsTrigger
- Object
- MacroObject
- Trigger
- SensorsTrigger
- ShakeDeviceTrigger
- Defined in:
- lib/ruby-macrodroid/triggers.rb
Overview
Category: Sensors
Instance Attribute Summary
Attributes inherited from Trigger
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ ShakeDeviceTrigger
constructor
A new instance of ShakeDeviceTrigger.
- #to_pc ⇒ Object
- #to_s(colour: false) ⇒ Object
- #to_summary(colour: false) ⇒ Object
Methods inherited from Trigger
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ ShakeDeviceTrigger
Returns a new instance of ShakeDeviceTrigger.
1453 1454 1455 1456 1457 1458 1459 1460 |
# File 'lib/ruby-macrodroid/triggers.rb', line 1453 def initialize(h={}) = { } super(.merge h) end |
Instance Method Details
#to_pc ⇒ Object
1462 1463 1464 |
# File 'lib/ruby-macrodroid/triggers.rb', line 1462 def to_pc() 'shake_device?' end |
#to_s(colour: false) ⇒ Object
1466 1467 1468 |
# File 'lib/ruby-macrodroid/triggers.rb', line 1466 def to_s(colour: false) 'Shake Device' end |
#to_summary(colour: false) ⇒ Object
1470 1471 1472 |
# File 'lib/ruby-macrodroid/triggers.rb', line 1470 def to_summary(colour: false) 'Shake Device' end |