Method: Bundler::URI::LDAP#initialize

Defined in:
lib/bundler/vendor/uri/lib/uri/ldap.rb

#initialize(*arg) ⇒ LDAP

Description

Creates a new Bundler::URI::LDAP object from generic Bundler::URI components as per RFC 2396. No LDAP-specific syntax checking is performed.

Arguments are scheme, userinfo, host, port, registry, path, opaque, query, and fragment, in that order.

Example:

uri = Bundler::URI::LDAP.new("ldap", nil, "ldap.example.com", nil, nil,
  "/dc=example;dc=com", nil, "query", nil)

See also Bundler::URI::Generic.new.



108
109
110
111
112
113
114
115
116
117
# File 'lib/bundler/vendor/uri/lib/uri/ldap.rb', line 108

def initialize(*arg)
  super(*arg)

  if @fragment
    raise InvalidURIError, 'bad LDAP URL'
  end

  parse_dn
  parse_query
end