Class: SetScreenTimeoutAction
- Inherits:
-
ScreenAction
- Object
- MacroObject
- Action
- ScreenAction
- SetScreenTimeoutAction
- Defined in:
- lib/ruby-macrodroid/actions.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.
1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 |
# File 'lib/ruby-macrodroid/actions.rb', line 1903 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
1915 1916 1917 |
# File 'lib/ruby-macrodroid/actions.rb', line 1915 def to_s(colour: false) 'SetScreenTimeoutAction ' + @h.inspect end |