Class: SpeakerPhoneAction

Inherits:
VolumeAction show all
Defined in:
lib/ruby-macrodroid.rb

Overview

Category: Volume

Instance Attribute Summary

Attributes inherited from Action

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ SpeakerPhoneAction

Returns a new instance of SpeakerPhoneAction.



4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
# File 'lib/ruby-macrodroid.rb', line 4698

def initialize(h={})

  options = {
    secondary_class_type: 'SpeakerPhoneAction',
    state: 0
  }

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



4709
4710
4711
# File 'lib/ruby-macrodroid.rb', line 4709

def to_s(colour: false)
  'SpeakerPhoneAction ' + @h.inspect
end