Socket address builder.
Given a socket type, a host and a port,
provides a method to build sockaddr string
# File lib/bundler/mirror.rb, line 208 def initialize(type, host, port) @type = type @host = host @port = port end
# File lib/bundler/mirror.rb, line 214 def to_socket_address Socket.pack_sockaddr_in(@port, @host) end