Method: Mongo::Client#database

Defined in:
lib/mongo/client.rb

#databaseMongo::Database (readonly)

Returns database The database the client is operating on.

Returns:

Since:

  • 2.0.0



143
144
145
# File 'lib/mongo/client.rb', line 143

def database
  @database
end