set_user

set_user(v) Instance Protected methods protected setter for the user component v see also #user=

set_userinfo

set_userinfo(user, password = nil) Instance Protected methods protect setter for the user component, and password if available. (with validation) see also #userinfo=

build

build(args) Class Public methods Description Create a new URI::HTTP object from components, with syntax checking. The components accepted are userinfo, host, port, path, query and fragment. The components should be provided either as an Array, or as a Hash with keys formed by preceding the component names with a colon. If an Array is used, the components must be passed in the order [userinfo, host, port, path, query, fragment]. Example: newuri = URI::HTTP.build({:host => 'www.ex

new

new(*arg) Class Public methods Description Create a new URI::HTTP object from generic URI components as per RFC 2396. No HTTP-specific syntax checking (as per RFC 1738) is performed. Arguments are scheme, userinfo, host, port, registry, path, opaque, query and fragment, in that order. Example: uri = URI::HTTP.new('http', nil, "www.example.com", nil, "/path", "query", 'fragment') See also URI::Generic.new

request_uri

request_uri() Instance Public methods Description Returns the full path for an HTTP request, as required by Net::HTTP::Get. If the URI contains a query, the full path is URI#path + '?' + URI#query. Otherwise, the path is simply URI#path.

build

build(args) Class Public methods Description Create a new URI::LDAP object from components, with syntax checking. The components accepted are host, port, dn, attributes, scope, filter, and extensions. The components should be provided either as an Array, or as a Hash with keys formed by preceding the component names with a colon. If an Array is used, the components must be passed in the order [host, port, dn, attributes, scope, filter, extensions]. Example: newuri = URI::LDAP.build

new

new(*arg) Class Public methods Description Create a new URI::LDAP object from generic 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 = URI::LDAP.new("ldap", nil, "ldap.example.com", nil, "/dc=example;dc=com", "query", nil, nil, nil, nil) See also URI::Generic.new

attributes

attributes() Instance Public methods returns attributes.

attributes=

attributes=(val) Instance Public methods setter for attributes val

dn

dn() Instance Public methods returns dn.