build(args) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/uri/ldap.rb, line 41
    def self.build(args)
      tmp = Util::make_components_hash(self, args)

      if tmp[:dn]
        tmp[:path] = tmp[:dn]
      end

      query = []
      [:extensions, :filter, :scope, :attributes].collect do |x|
        next if !tmp[x] && query.size == 0
        query.unshift(tmp[x])
      end

      tmp[:query] = query.join('?')

      return super(tmp)
    end
Register or log in to add new notes.