Class: ClearLogAction

Inherits:
LoggingAction show all
Defined in:
lib/ruby-macrodroid.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.



3886
3887
3888
3889
3890
3891
3892
3893
3894
# File 'lib/ruby-macrodroid.rb', line 3886

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



3896
3897
3898
# File 'lib/ruby-macrodroid.rb', line 3896

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