Class: Ektoplayer::Client
- Inherits:
-
Object
- Object
- Ektoplayer::Client
- Defined in:
- lib/ektoplayer/client.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
readonly
Returns the value of attribute database.
-
#trackloader ⇒ Object
readonly
Returns the value of attribute trackloader.
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize ⇒ Client
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
#database ⇒ Object (readonly)
Returns the value of attribute database.
8 9 10 |
# File 'lib/ektoplayer/client.rb', line 8 def database @database end |
#trackloader ⇒ Object (readonly)
Returns the value of attribute trackloader.
9 10 11 |
# File 'lib/ektoplayer/client.rb', line 9 def trackloader @trackloader end |