Class: BatteryTemperatureConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- BatteryTemperatureConstraint
- Defined in:
- lib/ruby-macrodroid/constraints.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, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ BatteryTemperatureConstraint
Returns a new instance of BatteryTemperatureConstraint.
153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/ruby-macrodroid/constraints.rb', line 153 def initialize(h={}) = { equals: false, greater_than: false, temperature: 30 } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
165 166 167 |
# File 'lib/ruby-macrodroid/constraints.rb', line 165 def to_s(colour: false, indent: 0) 'BatteryTemperatureConstraint ' + @h.inspect end |