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
2013-11-29 17:48:54 +00:00

12 lines
164 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