Class: BrightnessConstraint

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

Overview

Category: Screen and Speaker

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



4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
# File 'lib/ruby-macrodroid.rb', line 4747

def initialize(h={})

  options = {
    brightness: 35,
    equals: false,
    force_pie_mode: false,
    greater_than: false,
    is_auto_brightness: false
  }

  super(options.merge h)

end