Method: Mongo::Database#inspect

Defined in:
lib/mongo/database.rb

#inspectString

Get a pretty printed string inspection for the database.

Examples:

Inspect the database.

database.inspect

Returns:

  • (String)

    The database inspection.

Since:

  • 2.0.0



200
201
202
# File 'lib/mongo/database.rb', line 200

def inspect
  "#<Mongo::Database:0x#{object_id} name=#{name}>"
end