Class: DbMeta::DbMeta
- Inherits:
-
Object
- Object
- DbMeta::DbMeta
- Defined in:
- lib/db_meta.rb
Instance Method Summary collapse
- #extract(args = {}) ⇒ Object
- #fetch(args = {}) ⇒ Object
-
#initialize(args = {}) ⇒ DbMeta
constructor
A new instance of DbMeta.
Constructor Details
#initialize(args = {}) ⇒ DbMeta
Returns a new instance of DbMeta.
14 15 16 17 18 |
# File 'lib/db_meta.rb', line 14 def initialize(args = {}) @database_type = args[:database_type] || DATABASE_TYPES[0] raise "allowed database types are [#{DATABASE_TYPES.join(", ")}], but provided was [#{@database_type}]" unless DATABASE_TYPES.include?(@database_type) @abstract = Abstract.from_type(@database_type, args) end |