1
0
mirror of https://github.com/danbee/mpd-client synced 2025-03-04 08:39:09 +00:00
mpd-client/models/mpd_connection.rb

12 lines
160 B
Ruby

class MPDConnection
def self.mpd
@mpd ||= MPD.new
@mpd.connect unless @mpd.connected?
@mpd
end
def self.status
self.mpd.status
end
end