module LdapQuery
Used for creating exceptions with the Ldap connections and configuration
Used to initialize and container the LdapQuery
modules
Constants
- EMPTY_ARRAY
- EMPTY_HASH
- VERSION
Attributes
config[RW]
ldap[RW]
Public Class Methods
configure(config_hash = {})
click to toggle source
Reconfigure the LdapQuery
credential configuration
@param config_hash [Hash] @return [Class <LdapQuery::Config>]
# File lib/ldap_query/ldap_query.rb, line 16 def self.configure(config_hash = {}) raise(ConfigError, 'a valid configuration hash must be passed.') unless config_hash.is_a?(Hash) # if new a new config_hash hash been passed, create a new Config instance @config = LdapQuery::Config.new(config_hash) unless config_hash.empty? @config end