Class: ActiveRecord::Snapshot::Configuration::DBConfig
- Inherits:
-
Hashie::Dash
- Object
- Hashie::Dash
- ActiveRecord::Snapshot::Configuration::DBConfig
- Includes:
- Hashie::Extensions::Dash::IndifferentAccess
- Defined in:
- lib/active_record/snapshot/configuration.rb
Instance Method Summary collapse
-
#initialize(database_hash) ⇒ DBConfig
constructor
A new instance of DBConfig.
Constructor Details
#initialize(database_hash) ⇒ DBConfig
Returns a new instance of DBConfig.
34 35 36 |
# File 'lib/active_record/snapshot/configuration.rb', line 34 def initialize(database_hash) super database_hash.slice("database", "username", "password", "host") end |