Class: BatteryLevelTrigger

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

Returns a new instance of BatteryLevelTrigger.



1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
# File 'lib/ruby-macrodroid.rb', line 1190

def initialize(h={})

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

  super(options.merge h)

end