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, #to_s

Constructor Details

#initialize(h = {}) ⇒ DeviceOrientationConstraint

Returns a new instance of DeviceOrientationConstraint.



4579
4580
4581
4582
4583
4584
4585
4586
4587
# File 'lib/ruby-macrodroid.rb', line 4579

def initialize(h={})

  options = {
    portrait: true
  }

  super(options.merge h)

end