Class: HeadphonesConnectionConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- HeadphonesConnectionConstraint
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Media
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ HeadphonesConnectionConstraint
constructor
A new instance of HeadphonesConnectionConstraint.
- #to_s ⇒ Object
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ HeadphonesConnectionConstraint
Returns a new instance of HeadphonesConnectionConstraint.
4622 4623 4624 4625 4626 4627 4628 4629 4630 |
# File 'lib/ruby-macrodroid.rb', line 4622 def initialize(h={}) = { connected: true } super(.merge h) end |
Instance Method Details
#to_s ⇒ Object
4632 4633 4634 4635 |
# File 'lib/ruby-macrodroid.rb', line 4632 def to_s() connection = @h[:connected] ? 'Connected' : 'Disconnected' 'Headphones ' + connection end |