Class: Metastore::StorageFactory
- Inherits:
-
Object
- Object
- Metastore::StorageFactory
- Defined in:
- lib/metastore/storage_factory.rb
Class Method Summary collapse
Class Method Details
.from_sym(symbol) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/metastore/storage_factory.rb', line 4 def self.from_sym(symbol) klass = symbol.to_s.upcase Storage.const_get(klass) rescue NameError => e raise Errors::UnknownStorageType.new(e.) end |