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.



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

def initialize(h={})

  options = {
  }

  super(options.merge h)

end

Instance Method Details

#to_pcObject



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

def to_pc()
  'shake_device?'
end

#to_sObject



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

def to_s()
  'Shake Device'
end