Class: ActiveRecord::Snapshot::Configuration::DBConfig

Inherits:
Hashie::Dash
  • Object
show all
Includes:
Hashie::Extensions::Dash::IndifferentAccess
Defined in:
lib/active_record/snapshot/configuration.rb

Instance Method Summary collapse

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