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.



2220
2221
2222
2223
2224
2225
2226
2227
2228
# File 'lib/ruby-macrodroid/actions.rb', line 2220

def initialize(h={})

  options = {
    option: 1
  }

  super(options.merge h)

end

Instance Method Details

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



2230
2231
2232
# File 'lib/ruby-macrodroid/actions.rb', line 2230

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