Class: SetScreenTimeoutAction
- Inherits:
-
ScreenAction
- Object
- MacroObject
- Action
- ScreenAction
- SetScreenTimeoutAction
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Screen
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ SetScreenTimeoutAction
constructor
A new instance of SetScreenTimeoutAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SetScreenTimeoutAction
Returns a new instance of SetScreenTimeoutAction.
4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 |
# File 'lib/ruby-macrodroid.rb', line 4585 def initialize(h={}) = { timeout_delay_string: '1 Minute', timeout_delay: 60, custom_value_delay: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
4597 4598 4599 |
# File 'lib/ruby-macrodroid.rb', line 4597 def to_s(colour: false) 'SetScreenTimeoutAction ' + @h.inspect end |