Class: UcbRailsUser::Configuration::Ldap
- Inherits:
-
Object
- Object
- UcbRailsUser::Configuration::Ldap
- Defined in:
- app/models/ucb_rails_user/configuration/ldap.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
Instance Method Summary collapse
- #configure ⇒ Object
-
#initialize(config) ⇒ Ldap
constructor
A new instance of Ldap.
Constructor Details
#initialize(config) ⇒ Ldap
Returns a new instance of Ldap.
7 8 9 |
# File 'app/models/ucb_rails_user/configuration/ldap.rb', line 7 def initialize(config) self.config = config.presence || {} end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
5 6 7 |
# File 'app/models/ucb_rails_user/configuration/ldap.rb', line 5 def config @config end |
Class Method Details
.configure(config) ⇒ Object
43 44 45 |
# File 'app/models/ucb_rails_user/configuration/ldap.rb', line 43 def configure(config) new(config).configure end |
Instance Method Details
#configure ⇒ Object
11 12 13 14 15 |
# File 'app/models/ucb_rails_user/configuration/ldap.rb', line 11 def configure configure_host initialize_ldap test_entries end |