Class: BatteryTemperatureTrigger

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

Returns a new instance of BatteryTemperatureTrigger.



1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
# File 'lib/ruby-macrodroid.rb', line 1154

def initialize(h={})

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

  super(options.merge h)

end