Class: MacroEnabledConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- MacroEnabledConstraint
- Defined in:
- lib/ruby-macrodroid/constraints.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, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ MacroEnabledConstraint
Returns a new instance of MacroEnabledConstraint.
874 875 876 877 878 879 880 881 882 883 884 |
# File 'lib/ruby-macrodroid/constraints.rb', line 874 def initialize(h={}) = { enabled: true, macro_ids: [-8016812002629322290], macro_names: ["Intruder photo "] } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
886 887 888 |
# File 'lib/ruby-macrodroid/constraints.rb', line 886 def to_s(colour: false, indent: 0) 'MacroEnabledConstraint ' + @h.inspect end |