Class: ScreenOnAction
- Inherits:
-
ScreenAction
- Object
- MacroObject
- Action
- ScreenAction
- ScreenOnAction
- 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 = {}) ⇒ ScreenOnAction
constructor
A new instance of ScreenOnAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ ScreenOnAction
Returns a new instance of ScreenOnAction.
4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 |
# File 'lib/ruby-macrodroid.rb', line 4493 def initialize(h={}) = { pie_lock_screen: false, screen_off: true, screen_off_no_lock: false, screen_on_alternative: false } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
4506 4507 4508 |
# File 'lib/ruby-macrodroid.rb', line 4506 def to_s(colour: false) 'ScreenOnAction ' + @h.inspect end |