Class: MPD::Commands::CurrentPlaylistInfo

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

Overview

Info about songs in current playlist

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(songs = nil) ⇒ Object

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


12
13
14
15
# File 'lib/mpd/commands/current_playlist_info.rb', line 12

def execute(songs = nil)
  response = super("playlistinfo #{resolve_range(songs)}")
  Playlist.from_response(response)
end