Class: GPSEnabledConstraint

Inherits:
Constraint show all
Defined in:
lib/ruby-macrodroid.rb

Overview

Category: Connectivity

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Constraint

#match?

Methods inherited from MacroObject

#to_h

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={})

  options = {
    enabled: true
  }

  super(options.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