Class: AllowLEDNotificationLightAction

Inherits:
NotificationsAction show all
Defined in:
lib/ruby-macrodroid/actions.rb

Overview

Category: Notifications

Instance Attribute Summary

Attributes inherited from Action

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ AllowLEDNotificationLightAction

Returns a new instance of AllowLEDNotificationLightAction.



1735
1736
1737
1738
1739
1740
1741
1742
1743
# File 'lib/ruby-macrodroid/actions.rb', line 1735

def initialize(h={})

  options = {
    enabled: true
  }

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



1745
1746
1747
# File 'lib/ruby-macrodroid/actions.rb', line 1745

def to_s(colour: false)
  'AllowLEDNotificationLightAction ' + @h.inspect
end