Class: ExternalPowerTrigger

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

Overview

Category: Battery/Power

Instance Attribute Summary

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.



1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
# File 'lib/ruby-macrodroid.rb', line 1121

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