Class: SpeakerPhoneConstraint

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 = {}) ⇒ SpeakerPhoneConstraint

Returns a new instance of SpeakerPhoneConstraint.



5763
5764
5765
5766
5767
5768
5769
5770
5771
# File 'lib/ruby-macrodroid.rb', line 5763

def initialize(h={})

  options = {
    enabled: true
  }

  super(options.merge h)

end

Instance Method Details

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



5773
5774
5775
# File 'lib/ruby-macrodroid.rb', line 5773

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