Class: PowerButtonToggleTrigger

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

Returns a new instance of PowerButtonToggleTrigger.



1172
1173
1174
1175
1176
1177
1178
1179
1180
# File 'lib/ruby-macrodroid.rb', line 1172

def initialize(h={})

  options = {
    num_toggles: 3
  }

  super(options.merge h)

end