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) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ AllowLEDNotificationLightAction
Returns a new instance of AllowLEDNotificationLightAction.
1457 1458 1459 1460 1461 1462 1463 1464 1465 |
# File 'lib/ruby-macrodroid/actions.rb', line 1457 def initialize(h={}) = { enabled: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
1467 1468 1469 |
# File 'lib/ruby-macrodroid/actions.rb', line 1467 def to_s(colour: false) 'AllowLEDNotificationLightAction ' + @h.inspect end |