Class: SetRingtoneAction
- Inherits:
-
PhoneAction
- Object
- MacroObject
- Action
- PhoneAction
- SetRingtoneAction
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Phone
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ SetRingtoneAction
constructor
A new instance of SetRingtoneAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SetRingtoneAction
Returns a new instance of SetRingtoneAction.
4419 4420 4421 4422 4423 4424 4425 4426 4427 |
# File 'lib/ruby-macrodroid.rb', line 4419 def initialize(h={}) = { ringtone_uri: 'content://media/internal/audio/media/174' } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
4429 4430 4431 |
# File 'lib/ruby-macrodroid.rb', line 4429 def to_s(colour: false) 'SetRingtoneAction ' + @h.inspect end |