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, #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.



2222
2223
2224
2225
2226
2227
2228
2229
# File 'lib/ruby-macrodroid.rb', line 2222

def initialize(h={})

  options = {
  }

  super(options.merge h)

end

Instance Method Details

#to_pcObject



2231
2232
2233
# File 'lib/ruby-macrodroid.rb', line 2231

def to_pc()
  'shake_device?'
end

#to_sObject



2235
2236
2237
# File 'lib/ruby-macrodroid.rb', line 2235

def to_s()
  'Shake Device'
end