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.



3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
# File 'lib/ruby-macrodroid.rb', line 3864

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



3875
3876
3877
# File 'lib/ruby-macrodroid.rb', line 3875

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