method
build
v1_8_7_72 -
Show latest stable
- Class:
URI::LDAP
build(args)public
No documentation available.
# 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