class GitHub::Ldap::MemberSearch::Base

Attributes

ldap[R]

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

Public Class Methods

new(ldap, options = {}) click to toggle source

Public: Instantiate new search strategy.

# File lib/github/ldap/member_search/base.rb, line 13
def initialize(ldap, options = {})
  @ldap    = ldap
  @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/member_search/base.rb, line 27
def domains
  @domains ||= ldap.search_domains.map { |base| ldap.domain(base) }
end