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, #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.



1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
# File 'lib/ruby-macrodroid.rb', line 1274

def initialize(h={})

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

  super(options.merge h)

end