Class: SpeakerPhoneConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- SpeakerPhoneConstraint
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Screen and Speaker
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ SpeakerPhoneConstraint
constructor
A new instance of SpeakerPhoneConstraint.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SpeakerPhoneConstraint
Returns a new instance of SpeakerPhoneConstraint.
5749 5750 5751 5752 5753 5754 5755 5756 5757 |
# File 'lib/ruby-macrodroid.rb', line 5749 def initialize(h={}) = { enabled: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
5759 5760 5761 |
# File 'lib/ruby-macrodroid.rb', line 5759 def to_s(colour: false) 'SpeakerPhoneConstraint ' + @h.inspect end |