lib/mongo/uri/srv_protocol.rb
def client_options
        opts = @txt_options.merge(ssl: true)
        opts = opts.merge(uri_options).merge(:database => database)
        @user ? opts.merge(credentials) : opts
      end
# Gets the options hash that needs to be passed to a Mongo::Client on instantiation, so we
# don't have to merge the txt record options, credentials, and database in at that point -
# we only have a single point here.
#
# @example Get the client options.
#   uri.client_options
#
# @return [ Hash ] The options passed to the Mongo::Client
#
# @since 2.5.0
Gets the options hash that needs to be passed to a Mongo::Client on instantiation, so we
don't have to merge the txt record options, credentials, and database in at that point
we only have a single point here.
Gets the options hash that needs to be passed to a Mongo :: Client on instantiation so we don ' t have to merge the txt record options credentials and database in at that point we only have a single point here .
def client_options
        opts = @txt_options.merge(ssl: true)
        opts = opts.merge(uri_options).merge(:database => database)
        @user ? opts.merge(credentials) : opts
      end
def client_options opts = @txt_options . merge ( ssl : true ) opts = opts . merge ( uri_options ) . merge ( :database => database ) @user ? opts . merge ( credentials ) : opts end
Gets the options hash that needs to be passed to a Mongo::Client on instantiation, so we
don't have to merge the txt record options, credentials, and database in at that point
we only have a single point here.
Gets the options hash that needs to be passed to a Mongo :: Client on instantiation so we don ' t have to merge the txt record options credentials and database in at that point we only have a single point here .
The options passed to the Mongo::Client
The options passed to the Mongo :: Client
 Hash 
example
Get the client options. uri.client_options
Get the client options . uri . client_options
since
None