mirror of
https://github.com/danbee/mpd-client
synced 2025-03-04 08:39:09 +00:00
8 lines
162 B
Ruby
8 lines
162 B
Ruby
require './models/mpd_connection'
|
|
|
|
class Artist < Struct.new(:name)
|
|
def self.all
|
|
MPDConnection.mpd.artists.sort.map { |artist| self.new(artist) }
|
|
end
|
|
end
|