Class: BatterySaverStateConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- BatterySaverStateConstraint
- Defined in:
- lib/ruby-macrodroid/constraints.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, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ BatterySaverStateConstraint
Returns a new instance of BatterySaverStateConstraint.
132 133 134 135 136 137 138 139 140 |
# File 'lib/ruby-macrodroid/constraints.rb', line 132 def initialize(h={}) = { option: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
142 143 144 |
# File 'lib/ruby-macrodroid/constraints.rb', line 142 def to_s(colour: false, indent: 0) 'BatterySaverStateConstraint ' + @h.inspect end |