Class: ClearNotificationsAction

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

Overview

Category: Notifications

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

Returns a new instance of ClearNotificationsAction.



4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
# File 'lib/ruby-macrodroid.rb', line 4086

def initialize(h={})

  options = {
    package_name_list: [],
    match_text: '',
    application_name_list: [],
    clear_persistent: false,
    excludes: false,
    match_option: 0,
    age_in_seconds: 0,
    option: 0,
    enable_regex: false
  }

  super(options.merge h)

end

Instance Method Details

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



4104
4105
4106
# File 'lib/ruby-macrodroid.rb', line 4104

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