Class: MacroEnabledConstraint

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

Overview

Category: MacroDroid Specific

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #siguid, #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.



4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
# File 'lib/ruby-macrodroid.rb', line 4689

def initialize(h={})

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

  super(options.merge h)

end