Class: UcbRailsUser::Configuration::Ldap

Inherits:
Object
  • Object
show all
Defined in:
app/models/ucb_rails_user/configuration/ldap.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#configObject

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

#configureObject



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