Class: BatteryTemperatureConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- BatteryTemperatureConstraint
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Battery/Power
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ BatteryTemperatureConstraint
constructor
A new instance of BatteryTemperatureConstraint.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ BatteryTemperatureConstraint
Returns a new instance of BatteryTemperatureConstraint.
4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 |
# File 'lib/ruby-macrodroid.rb', line 4834 def initialize(h={}) = { equals: false, greater_than: false, temperature: 30 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
4846 4847 4848 |
# File 'lib/ruby-macrodroid.rb', line 4846 def to_s(colour: false) 'BatteryTemperatureConstraint ' + @h.inspect end |