Class: AutoRotateConstraint

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

Overview

Category: Device State

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

Returns a new instance of AutoRotateConstraint.



5269
5270
5271
5272
5273
5274
5275
5276
5277
# File 'lib/ruby-macrodroid.rb', line 5269

def initialize(h={})

  options = {
    enabled: true
  }

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



5279
5280
5281
# File 'lib/ruby-macrodroid.rb', line 5279

def to_s(colour: false)
  'AutoRotateConstraint ' + @h.inspect
end