Class: ExternalPowerConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- ExternalPowerConstraint
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Battery/Power
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ ExternalPowerConstraint
constructor
A new instance of ExternalPowerConstraint.
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ ExternalPowerConstraint
Returns a new instance of ExternalPowerConstraint.
3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 |
# File 'lib/ruby-macrodroid.rb', line 3714 def initialize(h={}) = { external_power: true, power_connected_options: [false, true, false] } super(.merge h) end |