mirror of
https://github.com/danbee/mpd-client
synced 2025-03-04 08:39:09 +00:00
12 lines
200 B
Ruby
12 lines
200 B
Ruby
class MPDConnection
|
|
def self.mpd
|
|
@mpd ||= MPD.new('localhost', 6600, { callbacks: true })
|
|
@mpd.connect unless @mpd.connected?
|
|
@mpd
|
|
end
|
|
|
|
def self.status
|
|
self.mpd.status
|
|
end
|
|
end
|