class GitHub::Ldap::MembershipValidators::Base
Attributes
groups[R]
Internal: an Array of Net::LDAP::Entry group objects to validate with.
ldap[R]
Internal: The GitHub::Ldap
object to search domains with.
Public Class Methods
new(ldap, groups, options = {})
click to toggle source
Public: Instantiate new validator.
-
ldap:
GitHub::Ldap
object -
groups: Array of Net::LDAP::Entry group objects
-
options: Hash of options
# File lib/github/ldap/membership_validators/base.rb, line 17 def initialize(ldap, groups, options = {}) @ldap = ldap @groups = groups @options = options end
Private Instance Methods
domains()
click to toggle source
Internal: Domains to search through.
Returns an Array of GitHub::Ldap::Domain
objects.
# File lib/github/ldap/membership_validators/base.rb, line 32 def domains @domains ||= ldap.search_domains.map { |base| ldap.domain(base) } end