Class: Ektoplayer::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/ektoplayer/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClient

Returns a new instance of Client.



11
12
13
14
15
16
# File 'lib/ektoplayer/client.rb', line 11

def initialize
   db_file = Config.get(:database_file)
   FileUtils::touch(db_file) unless File.file? db_file
   @database = Database.new(db_file)
   @trackloader = Trackloader.new(@database)
end

Instance Attribute Details

#databaseObject (readonly)

Returns the value of attribute database.



8
9
10
# File 'lib/ektoplayer/client.rb', line 8

def database
  @database
end

#trackloaderObject (readonly)

Returns the value of attribute trackloader.



9
10
11
# File 'lib/ektoplayer/client.rb', line 9

def trackloader
  @trackloader
end