Class: DatabaseExporter
- Inherits:
-
Object
- Object
- DatabaseExporter
- Extended by:
- Forwardable
- Defined in:
- lib/database_exporter.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ DatabaseExporter
constructor
A new instance of DatabaseExporter.
Constructor Details
#initialize(config) ⇒ DatabaseExporter
Returns a new instance of DatabaseExporter.
7 8 9 10 11 12 |
# File 'lib/database_exporter.rb', line 7 def initialize(config) @adapter = case config['adapter'] when /mysql/ MysqlAdapter.new(config) end end |