Method: Mongo::Srv::Result#initialize

Defined in:
lib/mongo/srv/result.rb

#initialize(hostname) ⇒ Result

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.

Create a new object to keep track of the SRV records of the hostname.

Parameters:

  • hostname (String)

    The hostname pointing to the DNS records.



49
50
51
52
53
# File 'lib/mongo/srv/result.rb', line 49

def initialize(hostname)
  @query_hostname = hostname
  @address_strs = []
  @min_ttl = nil
end