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.



1499
1500
1501
1502
1503
1504
1505
1506
# File 'lib/ruby-macrodroid/triggers.rb', line 1499

def initialize(h={})

  options = {
  }

  super(options.merge h)

end

Instance Method Details

#to_pcObject



1508
1509
1510
# File 'lib/ruby-macrodroid/triggers.rb', line 1508

def to_pc()
  'shake_device?'
end

#to_s(colour: false) ⇒ Object



1512
1513
1514
# File 'lib/ruby-macrodroid/triggers.rb', line 1512

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

#to_summary(colour: false) ⇒ Object



1516
1517
1518
# File 'lib/ruby-macrodroid/triggers.rb', line 1516

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