Class: SpeakerPhoneAction
- Inherits:
-
VolumeAction
- Object
- MacroObject
- Action
- VolumeAction
- SpeakerPhoneAction
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Volume
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ SpeakerPhoneAction
constructor
A new instance of SpeakerPhoneAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SpeakerPhoneAction
Returns a new instance of SpeakerPhoneAction.
4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 |
# File 'lib/ruby-macrodroid.rb', line 4712 def initialize(h={}) = { secondary_class_type: 'SpeakerPhoneAction', state: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
4723 4724 4725 |
# File 'lib/ruby-macrodroid.rb', line 4723 def to_s(colour: false) 'SpeakerPhoneAction ' + @h.inspect end |