Class: SetRingtoneAction
- Inherits:
-
PhoneAction
- Object
- MacroObject
- Action
- PhoneAction
- SetRingtoneAction
- Defined in:
- lib/ruby-macrodroid/actions.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, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods included from ObjectX
#action_to_object, #object_create, #varify
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SetRingtoneAction
Returns a new instance of SetRingtoneAction.
2442 2443 2444 2445 2446 2447 2448 2449 2450 |
# File 'lib/ruby-macrodroid/actions.rb', line 2442 def initialize(h={}) = { ringtone_uri: 'content://media/internal/audio/media/174' } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
2452 2453 2454 |
# File 'lib/ruby-macrodroid/actions.rb', line 2452 def to_s(colour: false, indent: 0) 'SetRingtoneAction ' + @h.inspect end |