Class: SetKeyguardAction
- Inherits:
-
DeviceSettingsAction
- Object
- MacroObject
- Action
- DeviceSettingsAction
- SetKeyguardAction
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Device Settings
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ SetKeyguardAction
constructor
A new instance of SetKeyguardAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SetKeyguardAction
Returns a new instance of SetKeyguardAction.
3628 3629 3630 3631 3632 3633 3634 3635 3636 |
# File 'lib/ruby-macrodroid.rb', line 3628 def initialize(h={}) = { keyguard_on: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
3638 3639 3640 |
# File 'lib/ruby-macrodroid.rb', line 3638 def to_s(colour: false) 'SetKeyguardAction ' + @h.inspect end |