Class: ClearLogAction

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

Overview

Category: Logging

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

Returns a new instance of ClearLogAction.



1331
1332
1333
1334
1335
1336
1337
1338
1339
# File 'lib/ruby-macrodroid/actions.rb', line 1331

def initialize(h={})

  options = {
    user_log: true
  }

  super(options.merge h)

end

Instance Method Details

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



1341
1342
1343
# File 'lib/ruby-macrodroid/actions.rb', line 1341

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