Class: KeepAwakeAction
- Inherits:
-
Action
- Object
- MacroObject
- Action
- KeepAwakeAction
- Defined in:
- lib/ruby-macrodroid.rb
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ KeepAwakeAction
constructor
A new instance of KeepAwakeAction.
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ KeepAwakeAction
Returns a new instance of KeepAwakeAction.
2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 |
# File 'lib/ruby-macrodroid.rb', line 2398 def initialize(h={}) = { enabled: true, permanent: true, screen_option: 0, seconds_to_stay_awake_for: 0 } super(.merge h) end |