Method: LdapQuery::Config#initialize
- Defined in:
- lib/ldap_query/config.rb
#initialize(config = {}) ⇒ Hash
Build and validate the configuration hash supplied for creating an LDAP connection
27 28 29 30 31 |
# File 'lib/ldap_query/config.rb', line 27 def initialize(config = {}) raise(ArgumentError, "the following attributes are required for an ldap connection #{REQUIRED_KEYS}") unless config.is_a?(Hash) && !config.blank? map_variables(validate_keys(cleanup_hash(defaults(config)))) end |