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.
3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 |
# File 'lib/ruby-macrodroid.rb', line 3916 def initialize(h={}) = { external_power: true, power_connected_options: [false, true, false] } super(.merge h) end |