Class: BatteryTemperatureTrigger

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

Overview

Category: Battery/Power

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ BatteryTemperatureTrigger

Returns a new instance of BatteryTemperatureTrigger.



1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
# File 'lib/ruby-macrodroid.rb', line 1322

def initialize(h={})

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

  super(options.merge h)

end