Class: LightLevelConstraint

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

Returns a new instance of LightLevelConstraint.



4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
# File 'lib/ruby-macrodroid.rb', line 4483

def initialize(h={})

  options = {
    light_level: -1,
    light_level_float: 5000.0,
    option: 1
  }

  super(options.merge h)

end