class PlaySoundAction

Category: Media

Public Class Methods

new(h={}) click to toggle source
Calls superclass method MediaAction::new
# File lib/ruby-macrodroid/actions.rb, line 2293
def initialize(h={})

  options = {
    selected_index: 0,
    file_path: ''
  }

  super(options.merge h)

end

Public Instance Methods

to_s(colour: false, indent: 0) click to toggle source
# File lib/ruby-macrodroid/actions.rb, line 2304
def to_s(colour: false, indent: 0)
  'Play: ' + @h[:file_path]
end