Method: Mongo::URI::SRVProtocol#query_hostname
- Defined in:
- lib/mongo/uri/srv_protocol.rb
#query_hostname ⇒ String (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.
The hostname that is specified in the URI and used to look up SRV records.
This attribute needs to be defined because SRVProtocol changes #servers to be the result of the lookup rather than the hostname specified in the URI.
72 73 74 |
# File 'lib/mongo/uri/srv_protocol.rb', line 72 def query_hostname @query_hostname end |