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.



3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
# File 'lib/ruby-macrodroid.rb', line 3395

def initialize(h={})

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

  super(options.merge h)

end