6 7 8 9 10 11 12 13 14 15
# File 'lib/usage_tracker_server/adapter.rb', line 6 def self::new(settings) klass = case settings.adapter when 'couchdb' Adapters::Couchdb when 'mongodb' Adapters::Mongodb end klass::new(settings) end