Class: SpeakerPhoneConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- SpeakerPhoneConstraint
- 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 = {}) ⇒ SpeakerPhoneConstraint
constructor
A new instance of SpeakerPhoneConstraint.
- #to_s(colour: false, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SpeakerPhoneConstraint
Returns a new instance of SpeakerPhoneConstraint.
1194 1195 1196 1197 1198 1199 1200 1201 1202 |
# File 'lib/ruby-macrodroid/constraints.rb', line 1194 def initialize(h={}) = { enabled: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
1204 1205 1206 |
# File 'lib/ruby-macrodroid/constraints.rb', line 1204 def to_s(colour: false, indent: 0) 'SpeakerPhoneConstraint ' + @h.inspect end |