Class: SilentModeVibrateOffAction

Inherits:
VolumeAction show all
Defined in:
lib/ruby-macrodroid/actions.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 = {}) ⇒ SilentModeVibrateOffAction

Returns a new instance of SilentModeVibrateOffAction.



1936
1937
1938
1939
1940
1941
1942
1943
1944
# File 'lib/ruby-macrodroid/actions.rb', line 1936

def initialize(h={})

  options = {
    option: 1
  }

  super(options.merge h)

end

Instance Method Details

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



1946
1947
1948
# File 'lib/ruby-macrodroid/actions.rb', line 1946

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