Class: MPD::Commands::PlaylistList

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

Overview

List of saved playlists.

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

#executeObject


9
10
11
12
13
14
# File 'lib/mpd/commands/playlist_list.rb', line 9

def execute
  exec_command('listplaylists')
    .key_value_pairs
    .select { |k, v| k == 'playlist' }
    .map(&:last)
end