Class: LogAction
- Inherits:
-
LoggingAction
- Object
- MacroObject
- Action
- LoggingAction
- LogAction
- Defined in:
- lib/ruby-macrodroid/actions.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.
1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 |
# File 'lib/ruby-macrodroid/actions.rb', line 1309 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
1320 1321 1322 |
# File 'lib/ruby-macrodroid/actions.rb', line 1320 def to_s(colour: false) 'LogAction ' + @h.inspect end |