Class: ShakeDeviceTrigger

Inherits:
SensorsTrigger show all
Defined in:
lib/ruby-macrodroid/triggers.rb

Overview

Category: Sensors

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ ShakeDeviceTrigger

Returns a new instance of ShakeDeviceTrigger.



1393
1394
1395
1396
1397
1398
1399
1400
# File 'lib/ruby-macrodroid/triggers.rb', line 1393

def initialize(h={})

  options = {
  }

  super(options.merge h)

end

Instance Method Details

#to_pcObject



1402
1403
1404
# File 'lib/ruby-macrodroid/triggers.rb', line 1402

def to_pc()
  'shake_device?'
end

#to_s(colour: false) ⇒ Object



1406
1407
1408
# File 'lib/ruby-macrodroid/triggers.rb', line 1406

def to_s(colour: false)
  'Shake Device'
end