Class: GitHub::Ldap::MembershipValidators::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/github/ldap/membership_validators/base.rb

Direct Known Subclasses

ActiveDirectory, Classic, Recursive

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ldap, groups, options = {}) ⇒ Base

Public: Instantiate new validator.

  • ldap: GitHub::Ldap object

  • groups: Array of Net::LDAP::Entry group objects

  • options: Hash of options



17
18
19
20
21
# File 'lib/github/ldap/membership_validators/base.rb', line 17

def initialize(ldap, groups, options = {})
  @ldap    = ldap
  @groups  = groups
  @options = options
end

Instance Attribute Details

#groupsObject (readonly)

Internal: an Array of Net::LDAP::Entry group objects to validate with.



10
11
12
# File 'lib/github/ldap/membership_validators/base.rb', line 10

def groups
  @groups
end

#ldapObject (readonly)

Internal: The GitHub::Ldap object to search domains with.



7
8
9
# File 'lib/github/ldap/membership_validators/base.rb', line 7

def ldap
  @ldap
end