Class: ScreenOnOffConstraint

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

Returns a new instance of ScreenOnOffConstraint.



4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
# File 'lib/ruby-macrodroid.rb', line 4633

def initialize(h={})

  options = {
    a: true,
    screen_on: true
  }

  super(options.merge h)

end