Class: MacroEnabledConstraint

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

Overview

Category: MacroDroid Specific

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Constraint

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ MacroEnabledConstraint

Returns a new instance of MacroEnabledConstraint.



4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
# File 'lib/ruby-macrodroid.rb', line 4170

def initialize(h={})

  options = {
    enabled: true,
    macro_ids: [-8016812002629322290],
    macro_names: ["Intruder photo "]
  }

  super(options.merge h)

end