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.
843 844 845 846 847 848 849 850 851 852 853 |
# File 'lib/ruby-macrodroid/constraints.rb', line 843 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
855 856 857 |
# File 'lib/ruby-macrodroid/constraints.rb', line 855 def to_s(colour: false, indent: 0) 'MacroEnabledConstraint ' + @h.inspect end |