Class: ProximitySensorConstraint

Inherits:
Constraint 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 Constraint

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ ProximitySensorConstraint



3975
3976
3977
3978
3979
3980
3981
3982
3983
# File 'lib/ruby-macrodroid.rb', line 3975

def initialize(h={})

  options = {
    near: true
  }

  super(options.merge h)

end