Method: Mongo::Server::ConnectionBase#description
- Defined in:
- lib/mongo/server/connection_base.rb
#description ⇒ Server::Description (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
A connection object that hasn’t yet connected (handshaken and authenticated, if authentication is required) does not have a description. While handshaking and authenticating the driver must be using global defaults, in particular not assuming that the properties of a particular connection are the same as properties of other connections made to the same address (since the server on the other end could have been shut down and a different server version could have been launched).
Returns the server description for this connection, derived from the hello response for the handshake performed on this connection.
82 83 84 |
# File 'lib/mongo/server/connection_base.rb', line 82 def description @description end |