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

Constructor Details

#initialize(h = {}) ⇒ PowerButtonToggleTrigger



727
728
729
730
731
732
733
734
735
# File 'lib/ruby-macrodroid.rb', line 727

def initialize(h={})

  options = {
    num_toggles: 3
  }

  super(options.merge h)

end