Class: GPSEnabledConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- GPSEnabledConstraint
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Connectivity
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ GPSEnabledConstraint
constructor
A new instance of GPSEnabledConstraint.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ GPSEnabledConstraint
Returns a new instance of GPSEnabledConstraint.
4904 4905 4906 4907 4908 4909 4910 4911 4912 |
# File 'lib/ruby-macrodroid.rb', line 4904 def initialize(h={}) = { enabled: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
4914 4915 4916 |
# File 'lib/ruby-macrodroid.rb', line 4914 def to_s(colour: false) 'GPSEnabledConstraint ' + @h.inspect end |