Class: VolumeLevelConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- VolumeLevelConstraint
- Defined in:
- lib/ruby-macrodroid.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) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ VolumeLevelConstraint
Returns a new instance of VolumeLevelConstraint.
5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 |
# File 'lib/ruby-macrodroid.rb', line 5828 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) ⇒ Object Also known as: to_summary
5840 5841 5842 |
# File 'lib/ruby-macrodroid.rb', line 5840 def to_s(colour: false) 'VolumeLevelConstraint ' + @h.inspect end |