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.
4770 4771 4772 4773 4774 4775 4776 4777 4778 |
# File 'lib/ruby-macrodroid.rb', line 4770 def initialize(h={}) = { connected: true } super(.merge h) end |
Instance Method Details
#to_s ⇒ Object
4780 4781 4782 4783 |
# File 'lib/ruby-macrodroid.rb', line 4780 def to_s() connection = @h[:connected] ? 'Connected' : 'Disconnected' 'Headphones ' + connection end |