Module: DatabaseCleaner::Redis::Base

Includes:
Generic::Base
Included in:
Truncation
Defined in:
lib/database_cleaner/redis/base.rb

Instance Method Summary collapse

Methods included from Generic::Base

#cleaning, included

Instance Method Details

#dbObject Also known as: url



16
17
18
# File 'lib/database_cleaner/redis/base.rb', line 16

def db
  @db ||= :default
end

#db=(desired_db) ⇒ Object



12
13
14
# File 'lib/database_cleaner/redis/base.rb', line 12

def db=(desired_db)
  @db = desired_db
end