Class: ExternalPowerTrigger

Inherits:
Trigger show all
Defined in:
lib/ruby-macrodroid.rb

Overview

Category: Battery/Power

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h, #to_s

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={})

  options = {
    power_connected_options: [true, true, true],
    has_set_usb_option: true,
    power_connected: true,
    has_set_new_power_connected_options: true
  }

  super(options.merge h)

end