Class: VolumeLevelConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- VolumeLevelConstraint
- Defined in:
- lib/ruby-macrodroid/constraints.rb
Overview
Category: Screen and Speaker
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ VolumeLevelConstraint
constructor
A new instance of VolumeLevelConstraint.
- #to_s(colour: false, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ VolumeLevelConstraint
Returns a new instance of VolumeLevelConstraint.
1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 |
# File 'lib/ruby-macrodroid/constraints.rb', line 1259 def initialize(h={}) = { comparison: 0, stream_index_array: [false, true, false, false, false, false, false], volume: 42 } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
1271 1272 1273 |
# File 'lib/ruby-macrodroid/constraints.rb', line 1271 def to_s(colour: false, indent: 0) 'VolumeLevelConstraint ' + @h.inspect end |