Class: BatteryTemperatureConstraint

Inherits:
Constraint 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 Constraint

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ BatteryTemperatureConstraint

Returns a new instance of BatteryTemperatureConstraint.



3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
# File 'lib/ruby-macrodroid.rb', line 3166

def initialize(h={})

  options = {
    equals: false,
    greater_than: false,
    temperature: 30
  }

  super(options.merge h)

end