Class: Quiyo

Inherits:
Object
  • Object
show all
Includes:
Colors, Core, Database, Playback, Playlist, Server, Status
Defined in:
lib/quiyo/core.rb,
lib/quiyo/colors.rb,
lib/quiyo/server.rb,
lib/quiyo/status.rb,
lib/quiyo/database.rb,
lib/quiyo/playback.rb,
lib/quiyo/playlist.rb

Defined Under Namespace

Modules: Colors, Core, Database, Playback, Playlist, Server, Status

Instance Method Summary collapse

Methods included from Playlist

#addtoplist, #clearplist, #lsplist, #randomalbum, #removefromplist, #saveplist

Methods included from Playback

#pause, #play, #playnext, #playprevious, #stop

Methods included from Database

#love, #loved

Methods included from Status

#_print, #info, #nowplaying, #prompt, #time

Methods included from Server

#list, #quit, #search, #vol

Methods included from Colors

#colorize, #printsonglist

Methods included from Core

#help, #readline_hist, #showprompt

Constructor Details

#initialize(server, port, version) ⇒ Quiyo

Returns a new instance of Quiyo.



3
4
5
6
7
8
9
# File 'lib/quiyo/server.rb', line 3

def initialize(server, port, version)
	print colorize("++", 197) + " Connecting to MPD at #{server}:#{port}..."
	@mpd = MPD.new server, port
	@mpd.connect
	print colorize("Connected!\n", 70)
	print colorize("++", 197) + " This is quiyo #{version}\n\n"
end