Class: MacroEnabledConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- MacroEnabledConstraint
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: MacroDroid Specific
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ MacroEnabledConstraint
constructor
A new instance of MacroEnabledConstraint.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
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={}) = { enabled: true, macro_ids: [-8016812002629322290], macro_names: ["Intruder photo "] } super(.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 |