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.



4904
4905
4906
4907
4908
4909
4910
4911
4912
# File 'lib/ruby-macrodroid.rb', line 4904

def initialize(h={})

  options = {
    enabled: true
  }

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