Class: GitHub::Ldap::MembershipValidators::Base
- Inherits:
-
Object
- Object
- GitHub::Ldap::MembershipValidators::Base
- Defined in:
- lib/github/ldap/membership_validators/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#groups ⇒ Object
readonly
Internal: an Array of Net::LDAP::Entry group objects to validate with.
-
#ldap ⇒ Object
readonly
Internal: The GitHub::Ldap object to search domains with.
Instance Method Summary collapse
-
#initialize(ldap, groups, options = {}) ⇒ Base
constructor
Public: Instantiate new validator.
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, = {}) @ldap = ldap @groups = groups @options = end |
Instance Attribute Details
#groups ⇒ Object (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 |
#ldap ⇒ Object (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 |