Sha256: 48500722028472e381b1baf66e7e0ad55d4b5a1ebb1cc589c0ce2be310a29331

Contents?: true

Size: 368 Bytes

Versions: 10

Compression:

Stored size: 368 Bytes

Contents

module UnifiedDB
  module Backend
    
    autoload :Base, "#{ROOT}/unified_db/backend/base"
    autoload :IMDB, "#{ROOT}/unified_db/backend/imdb"
    autoload :TVDB, "#{ROOT}/unified_db/backend/tvdb"
    
    AVAILABLE = {
      'imdb' => Backend::IMDB,
      'tvdb' => Backend::TVDB
    }

    def self.select(name)
      AVAILABLE[name.to_s]
    end
    
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
unified_db-0.2.7 lib/unified_db/backend.rb
unified_db-0.2.6 lib/unified_db/backend.rb
unified_db-0.2.5 lib/unified_db/backend.rb
unified_db-0.2.4 lib/unified_db/backend.rb
unified_db-0.2.3 lib/unified_db/backend.rb
unified_db-0.2.2 lib/unified_db/backend.rb
unified_db-0.2.1 lib/unified_db/backend.rb
unified_db-0.2.0 lib/unified_db/backend.rb
unified_db-0.1.1 lib/unified_db/backend.rb
unified_db-0.1.0 lib/unified_db/backend.rb