Class: VolumeLevelConstraint

Inherits:
Constraint show all
Defined in:
lib/ruby-macrodroid.rb

Overview

Category: Screen and Speaker

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Constraint

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ VolumeLevelConstraint

Returns a new instance of VolumeLevelConstraint.



5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
# File 'lib/ruby-macrodroid.rb', line 5814

def initialize(h={})

  options = {
    comparison: 0,
    stream_index_array: [false, true, false, false, false, false, false],
    volume: 42
  }

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



5826
5827
5828
# File 'lib/ruby-macrodroid.rb', line 5826

def to_s(colour: false)
  'VolumeLevelConstraint ' + @h.inspect
end