Class: DeviceOrientationConstraint

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

Overview

Category: Sensors

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Constraint

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ DeviceOrientationConstraint

Returns a new instance of DeviceOrientationConstraint.



3959
3960
3961
3962
3963
3964
3965
3966
3967
# File 'lib/ruby-macrodroid.rb', line 3959

def initialize(h={})

  options = {
    portrait: true
  }

  super(options.merge h)

end