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



1981
1982
1983
1984
1985
1986
1987
1988
# File 'lib/ruby-macrodroid.rb', line 1981

def initialize(h={})

  options = {
  }

  super(options.merge h)

end

Instance Method Details

#to_pcObject



1990
1991
1992
# File 'lib/ruby-macrodroid.rb', line 1990

def to_pc()
  'shake_device?'
end

#to_sObject



1994
1995
1996
# File 'lib/ruby-macrodroid.rb', line 1994

def to_s()
  'Shake Device'
end