Class: ShakeDeviceTrigger

Inherits:
SensorsTrigger show all
Defined in:
lib/ruby-macrodroid.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.



2554
2555
2556
2557
2558
2559
2560
2561
# File 'lib/ruby-macrodroid.rb', line 2554

def initialize(h={})

  options = {
  }

  super(options.merge h)

end

Instance Method Details

#to_pcObject



2563
2564
2565
# File 'lib/ruby-macrodroid.rb', line 2563

def to_pc()
  'shake_device?'
end

#to_s(colour: false) ⇒ Object



2567
2568
2569
# File 'lib/ruby-macrodroid.rb', line 2567

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