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.



2059
2060
2061
2062
2063
2064
2065
2066
# File 'lib/ruby-macrodroid.rb', line 2059

def initialize(h={})

  options = {
  }

  super(options.merge h)

end

Instance Method Details

#to_pc ⇒ Object



2068
2069
2070
# File 'lib/ruby-macrodroid.rb', line 2068

def to_pc()
  'shake_device?'
end

#to_s ⇒ Object



2072
2073
2074
# File 'lib/ruby-macrodroid.rb', line 2072

def to_s()
  'Shake Device'
end