Moongoon
Moongoon is a MongoDB object-document mapper library.
Constants
Log = ::Log.for(self)
Class methods
client
Retrieves the mongodb driver client that can be used to perform low level queries
See: https://github.com/elbywan/cryomongo
cursor = Moongoon.client["database"]["collection"].find({ "key": value })
puts cursor.to_a
client?
Retrieves the mongodb driver client that can be used to perform low level queries
See: https://github.com/elbywan/cryomongo
cursor = Moongoon.client["database"]["collection"].find({ "key": value })
puts cursor.to_a
config
Sourceconfigure
Sourcedatabase
The default database instance that can be used to perform low level queries.
See: https://github.com/elbywan/cryomongo
db = Moongoon.database
collection = db["some_collection"]
data = collection.find query
pp data
database_name
The name of the default database.
database_name?
The name of the default database.