Method: Mongo::Server::Description#primary_host
- Defined in:
- lib/mongo/server/description.rb
#primary_host ⇒ String | nil
Get the address of the primary host.
624 625 626 |
# File 'lib/mongo/server/description.rb', line 624 def primary_host config[PRIMARY_HOST] && config[PRIMARY_HOST].downcase end |