Module: DatabaseCleaner::Moped::Base

Includes:
Generic::Base
Included in:
TruncationBase
Defined in:
lib/database_cleaner/moped/base.rb

Instance Method Summary collapse

Methods included from Generic::Base

#cleaning, included

Instance Method Details

#dbObject



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

def db
  @db ||= :default
end

#db=(desired_db) ⇒ Object



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

def db=(desired_db)
  @db = desired_db
end

#hostObject



24
25
26
# File 'lib/database_cleaner/moped/base.rb', line 24

def host
  @host ||= '127.0.0.1:27017'
end

#host_port=(desired_host) ⇒ Object



20
21
22
# File 'lib/database_cleaner/moped/base.rb', line 20

def host_port=(desired_host)
  @host = desired_host
end