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.
4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 |
# File 'lib/ruby-macrodroid.rb', line 4599 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
4611 4612 4613 |
# File 'lib/ruby-macrodroid.rb', line 4611 def to_s(colour: false) 'SetScreenTimeoutAction ' + @h.inspect end |