Class: ExternalPowerTrigger

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

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ ExternalPowerTrigger

Returns a new instance of ExternalPowerTrigger.



556
557
558
559
560
561
562
563
564
565
566
567
# File 'lib/ruby-macrodroid.rb', line 556

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