Class: VolumeIncrementDecrementAction

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

Returns a new instance of VolumeIncrementDecrementAction.



1995
1996
1997
1998
1999
2000
2001
2002
2003
# File 'lib/ruby-macrodroid/actions.rb', line 1995

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



2005
2006
2007
# File 'lib/ruby-macrodroid/actions.rb', line 2005

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