Class: BiblioTech::Builders::Database

Inherits:
Base
  • Object
show all
Defined in:
lib/bibliotech/builders/database.rb

Direct Known Subclasses

Export, Import

Instance Attribute Summary

Attributes inherited from Base

#config

Class Method Summary collapse

Methods inherited from Base

adapter_registry, for, #initialize, null_adapter, register, registry, supported_adapters

Constructor Details

This class inherits a constructor from BiblioTech::Builders::Base

Class Method Details

.find_class(config) ⇒ Object



6
7
8
9
10
# File 'lib/bibliotech/builders/database.rb', line 6

def self.find_class(config)
  adapter_registry.fetch(config.adapter.to_s) do
    raise "config.adapter is #{config.adapter.inspect} - supported adapters are #{supported_adapters.join(", ")}"
  end
end