Module: DatabaseCleaner::Moped::Base
Instance Method Summary collapse
Methods included from Generic::Base
Instance Method Details
#db ⇒ Object
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 |
#host ⇒ Object
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 |