module Quiyo::Database
Public Instance Methods
love()
click to toggle source
# File lib/quiyo/database.rb, line 13 def love @love = Love.create( :song => @mpd.current_song["file"], :loved_at => Time.now ) end
loved()
click to toggle source
# File lib/quiyo/database.rb, line 20 def loved Love.each { |s| song = @mpd.songs(s.song).first printf "[%s] %s : %s [%s]\n" % [ s.id, colorize(song["artist"], CONF["colors"]["artist"]), colorize(song["title"], CONF["colors"]["title"]), colorize(song["album"], CONF["colors"]["album"]) ] } end