Method: Mongo::Address::Unix#initialize

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

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

Initialize the socket resolver.

Examples:

Initialize the resolver.

Unix.new("/path/to/socket.sock", "/path/to/socket.sock")

Parameters:

  • host (String)

    The host.

Since:

  • 2.0.0



59
60
61
# File 'lib/mongo/address/unix.rb', line 59

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