Class: KillBackgroundAppAction

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

Overview

Category: Applications

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 included from ObjectX

#action_to_object, #object_create, #varify

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ KillBackgroundAppAction

Returns a new instance of KillBackgroundAppAction.



100
101
102
103
104
105
106
107
108
109
# File 'lib/ruby-macrodroid/actions.rb', line 100

def initialize(h={})

  options = {
    application_name_list: [""],
    package_name_list: [""]
  }

  super(options.merge h)

end

Instance Method Details

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



111
112
113
# File 'lib/ruby-macrodroid/actions.rb', line 111

def to_s(colour: false, indent: 0)
  'KillBackgroundAppAction ' + @h.inspect
end