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.
4918 4919 4920 4921 4922 4923 4924 4925 4926 |
# File 'lib/ruby-macrodroid.rb', line 4918 def initialize(h={}) = { enabled: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
4928 4929 4930 |
# File 'lib/ruby-macrodroid.rb', line 4928 def to_s(colour: false) 'GPSEnabledConstraint ' + @h.inspect end |