Sha256: 2e6558ddf30e23cd118ab4f18e0179188e5c47cfe9e5b5d7521b3b3b6d18fb93
Contents?: true
Size: 649 Bytes
Versions: 1
Compression:
Stored size: 649 Bytes
Contents
# frozen_string_literal: true # Used to initialize and container the LdapQuery modules module LdapQuery attr_accessor :ldap, :config EMPTY_ARRAY = [].freeze EMPTY_HASH = {}.freeze @config = {} # Reconfigure the LdapQuery credential configuration # # @param config_hash [Hash] # @return [Class <LdapQuery::Config>] 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ldap_query-0.0.1 | lib/ldap_query/ldap_query.rb |