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.
1183 1184 1185 1186 1187 1188 1189 1190 1191 |
# File 'lib/ruby-macrodroid/constraints.rb', line 1183 def initialize(h={}) = { enabled: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
1193 1194 1195 |
# File 'lib/ruby-macrodroid/constraints.rb', line 1193 def to_s(colour: false, indent: 0) 'SpeakerPhoneConstraint ' + @h.inspect end |