Class: ScreenOnOffConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- ScreenOnOffConstraint
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Screen and Speaker
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ ScreenOnOffConstraint
constructor
A new instance of ScreenOnOffConstraint.
- #to_s ⇒ Object
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ ScreenOnOffConstraint
Returns a new instance of ScreenOnOffConstraint.
4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 |
# File 'lib/ruby-macrodroid.rb', line 4969 def initialize(h={}) = { a: true, screen_on: true } super(.merge h) end |
Instance Method Details
#to_s ⇒ Object
4980 4981 4982 |
# File 'lib/ruby-macrodroid.rb', line 4980 def to_s() 'Screen ' + (@h[:screen_on] ? 'On' : 'Off') end |