Class: GPSEnabledConstraint
- Inherits:
- 
      Constraint
      
        - Object
- MacroObject
- Constraint
- GPSEnabledConstraint
 
- Defined in:
- lib/ruby-macrodroid/constraints.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, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ GPSEnabledConstraint
Returns a new instance of GPSEnabledConstraint.
| 226 227 228 229 230 231 232 233 234 | # File 'lib/ruby-macrodroid/constraints.rb', line 226 def initialize(h={}) = { enabled: true } super(.merge h) end | 
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
| 236 237 238 | # File 'lib/ruby-macrodroid/constraints.rb', line 236 def to_s(colour: false, indent: 0) 'GPSEnabledConstraint ' + @h.inspect end |