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.



3893
3894
3895
3896
3897
3898
3899
3900
3901
# File 'lib/ruby-macrodroid.rb', line 3893

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



3903
3904
3905
# File 'lib/ruby-macrodroid.rb', line 3903

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