Method: Mongo::ServerSelector::Nearest#name

Defined in:
lib/mongo/server_selector/nearest.rb

#nameSymbol

Get the name of the server mode type.

Examples:

Get the name of the server mode for this preference.

preference.name

Returns:

Since:

  • 2.0.0



40
41
42
# File 'lib/mongo/server_selector/nearest.rb', line 40

def name
  :nearest
end