Class: AllowLEDNotificationLightAction

Inherits:
NotificationsAction show all
Defined in:
lib/ruby-macrodroid.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.



4146
4147
4148
4149
4150
4151
4152
4153
4154
# File 'lib/ruby-macrodroid.rb', line 4146

def initialize(h={})

  options = {
    enabled: true
  }

  super(options.merge h)

end

Instance Method Details

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



4156
4157
4158
# File 'lib/ruby-macrodroid.rb', line 4156

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