Class: SetNotificationSoundAction

Inherits:
NotificationsAction show all
Defined in:
lib/ruby-macrodroid.rb,
lib/ruby-macrodroid.rb,
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 = {}) ⇒ SetNotificationSoundAction

Returns a new instance of SetNotificationSoundAction.



4174
4175
4176
4177
4178
4179
4180
4181
4182
# File 'lib/ruby-macrodroid.rb', line 4174

def initialize(h={})

  options = {
    ringtone_uri: 'content://media/internal/audio/media/27'
  }

  super(options.merge h)

end

Instance Method Details

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



4184
4185
4186
# File 'lib/ruby-macrodroid.rb', line 4184

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