Class: LogAction

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

Returns a new instance of LogAction.



3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
# File 'lib/ruby-macrodroid.rb', line 3871

def initialize(h={})

  options = {
    log_text: '',
    log_date_and_time: true
  }

  super(options.merge h)

end

Instance Method Details

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



3882
3883
3884
# File 'lib/ruby-macrodroid.rb', line 3882

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