Class: ShakeDeviceTrigger

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

Overview

Category: Sensors

Instance Attribute Summary

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.



2152
2153
2154
2155
2156
2157
2158
2159
# File 'lib/ruby-macrodroid.rb', line 2152

def initialize(h={})

  options = {
  }

  super(options.merge h)

end

Instance Method Details

#to_pcObject



2161
2162
2163
# File 'lib/ruby-macrodroid.rb', line 2161

def to_pc()
  'shake_device?'
end

#to_sObject



2165
2166
2167
# File 'lib/ruby-macrodroid.rb', line 2165

def to_s()
  'Shake Device'
end