Class: HeadphonesTrigger
- Inherits:
-
Trigger
- Object
- MacroObject
- Trigger
- HeadphonesTrigger
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Connectivity
Instance Attribute Summary
Attributes inherited from Trigger
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ HeadphonesTrigger
constructor
A new instance of HeadphonesTrigger.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Trigger
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ HeadphonesTrigger
Returns a new instance of HeadphonesTrigger.
1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 |
# File 'lib/ruby-macrodroid.rb', line 1690 def initialize(h={}) = { headphones_connected: true, mic_option: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
1701 1702 1703 |
# File 'lib/ruby-macrodroid.rb', line 1701 def to_s(colour: false) 'HeadphonesTrigger ' + @h.inspect end |