Class: BatteryLevelTrigger

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

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ BatteryLevelTrigger

Returns a new instance of BatteryLevelTrigger.



510
511
512
513
514
515
516
517
518
519
520
# File 'lib/ruby-macrodroid.rb', line 510

def initialize(h={})

  options = {
    battery_level: 50,
    decreases_to: true,
    option: 0
  }

  super(options.merge h)

end