Method: Mongo::Address::IPv6#initialize

Defined in:
lib/mongo/address/ipv6.rb

#initialize(host, port, host_name = nil) ⇒ IPv6

Initialize the IPv6 resolver.

Examples:

Initialize the resolver.

IPv6.new("::1", 28011, 'localhost')

Parameters:

  • host (String)

    The host.

  • port (Integer)

    The port.

Since:

  • 2.0.0



86
87
88
89
90
# File 'lib/mongo/address/ipv6.rb', line 86

def initialize(host, port, host_name=nil)
  @host = host
  @port = port
  @host_name = host_name
end