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.



4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
# File 'lib/ruby-macrodroid.rb', line 4248

def initialize(h={})

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

  super(options.merge h)

end