Class: SetBrightnessAction
- Inherits:
-
ScreenAction
- Object
- MacroObject
- Action
- ScreenAction
- SetBrightnessAction
- 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 = {}) ⇒ SetBrightnessAction
constructor
A new instance of SetBrightnessAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SetBrightnessAction
Returns a new instance of SetBrightnessAction.
1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 |
# File 'lib/ruby-macrodroid/actions.rb', line 1761 def initialize(h={}) = { brightness_percent: 81, force_pie_mode: false, brightness: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
1773 1774 1775 |
# File 'lib/ruby-macrodroid/actions.rb', line 1773 def to_s(colour: false) 'SetBrightnessAction ' + @h.inspect end |