Class: SetVolumeAction

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

Overview

Category: Volume

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ SetVolumeAction

Returns a new instance of SetVolumeAction.



3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
# File 'lib/ruby-macrodroid.rb', line 3795

def initialize(h={})

  options = {
    variables: [nil, nil, nil, nil, nil, nil, nil],
    stream_index_array: [false, false, false, false, false, false, true],
    stream_volume_array: [0, 0, 0, 0, 0, 0, 66],
    force_vibrate_off: false,
    volume: -1
  }

  super(options.merge h)

end