Class: MPD::Commands::PlaylistInfo

Inherits:
Abstract
  • Object
show all
Defined in:
lib/mpd/commands/playlist_info.rb

Overview

Info about songs in specific playlist. MPD command: “listplaylistinfo <NAME>”

Instance Attribute Summary

Attributes inherited from Abstract

#connection

Instance Method Summary collapse

Methods inherited from Abstract

#initialize

Constructor Details

This class inherits a constructor from MPD::Commands::Abstract

Instance Method Details

#execute(name) ⇒ Object

‘songs` can be range or integer (to show info about one song) or completely ommited (to show info about all songs)



13
14
15
16
# File 'lib/mpd/commands/playlist_info.rb', line 13

def execute(name)
  response = super("listplaylistinfo \"#{name}\"")
  Playlist.from_response(response)
end