Class: AllowLEDNotificationLightAction
- Inherits:
-
NotificationsAction
- Object
- MacroObject
- Action
- NotificationsAction
- AllowLEDNotificationLightAction
- Defined in:
- lib/ruby-macrodroid/actions.rb
Overview
Category: Notifications
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ AllowLEDNotificationLightAction
constructor
A new instance of AllowLEDNotificationLightAction.
- #to_s(colour: false, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ AllowLEDNotificationLightAction
Returns a new instance of AllowLEDNotificationLightAction.
1874 1875 1876 1877 1878 1879 1880 1881 1882 |
# File 'lib/ruby-macrodroid/actions.rb', line 1874 def initialize(h={}) = { enabled: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
1884 1885 1886 |
# File 'lib/ruby-macrodroid/actions.rb', line 1884 def to_s(colour: false, indent: 0) 'AllowLEDNotificationLightAction ' + @h.inspect end |