Class: VolumeIncrementDecrementAction

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 = {}) ⇒ VolumeIncrementDecrementAction

Returns a new instance of VolumeIncrementDecrementAction.



4691
4692
4693
4694
4695
4696
4697
4698
4699
# File 'lib/ruby-macrodroid.rb', line 4691

def initialize(h={})

  options = {
    volume_up: true
  }

  super(options.merge h)

end

Instance Method Details

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



4701
4702
4703
# File 'lib/ruby-macrodroid.rb', line 4701

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