Class: BatterySaverStateConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- BatterySaverStateConstraint
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Battery/Power
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ BatterySaverStateConstraint
constructor
A new instance of BatterySaverStateConstraint.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ BatterySaverStateConstraint
Returns a new instance of BatterySaverStateConstraint.
4813 4814 4815 4816 4817 4818 4819 4820 4821 |
# File 'lib/ruby-macrodroid.rb', line 4813 def initialize(h={}) = { option: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
4823 4824 4825 |
# File 'lib/ruby-macrodroid.rb', line 4823 def to_s(colour: false) 'BatterySaverStateConstraint ' + @h.inspect end |