Class: LogAction
- Inherits:
-
LoggingAction
- Object
- MacroObject
- Action
- LoggingAction
- LogAction
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Logging
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ LogAction
constructor
A new instance of LogAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
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={}) = { log_text: '', log_date_and_time: true } super(.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 |