Class: ExternalPowerTrigger
- Inherits:
-
Trigger
- Object
- MacroObject
- Trigger
- ExternalPowerTrigger
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Battery/Power
Instance Attribute Summary
Attributes inherited from Trigger
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ ExternalPowerTrigger
constructor
A new instance of ExternalPowerTrigger.
Methods inherited from Trigger
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ ExternalPowerTrigger
Returns a new instance of ExternalPowerTrigger.
1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 |
# File 'lib/ruby-macrodroid.rb', line 1309 def initialize(h={}) = { power_connected_options: [true, true, true], has_set_usb_option: true, power_connected: true, has_set_new_power_connected_options: true } super(.merge h) end |