1
0
mirror of https://github.com/danbee/mpd-client synced 2025-03-04 08:39:09 +00:00
mpd-client/models/control.rb
2013-10-17 11:26:13 +01:00

26 lines
367 B
Ruby

require './models/mpd_connection'
class Control
class << self
def play
MPDConnection.mpd.play
end
def stop
MPDConnection.mpd.stop
end
def next
MPDConnection.mpd.next
end
def previous
MPDConnection.mpd.previous
end
def pause
MPDConnection.mpd.pause(!MPDConnection.mpd.paused?)
end
end
end