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

Constructor Details

#initialize(h = {}) ⇒ BatteryTemperatureConstraint

Returns a new instance of BatteryTemperatureConstraint.



3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
# File 'lib/ruby-macrodroid.rb', line 3774

def initialize(h={})

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

  super(options.merge h)

end