Class: BatteryTemperatureTrigger

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

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ BatteryTemperatureTrigger

Returns a new instance of BatteryTemperatureTrigger.



526
527
528
529
530
531
532
533
534
535
536
# File 'lib/ruby-macrodroid.rb', line 526

def initialize(h={})

  options = {
    decreases_to: true,
    option: 0,
    temperature: 30
  }

  super(options.merge h)

end