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

Constructor Details

#initialize(h = {}) ⇒ MacroEnabledConstraint

Returns a new instance of MacroEnabledConstraint.



5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
# File 'lib/ruby-macrodroid.rb', line 5439

def initialize(h={})

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

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



5451
5452
5453
# File 'lib/ruby-macrodroid.rb', line 5451

def to_s(colour: false)
  'MacroEnabledConstraint ' + @h.inspect
end