Class: KU::LDAP::Entry::Group

Inherits:
Base
  • Object
show all
Defined in:
lib/ku/ldap/entry/group.rb

Constant Summary

Constants inherited from Base

Base::BASE

Instance Method Summary collapse

Methods inherited from Base

#==, first, #initialize, search

Constructor Details

This class inherits a constructor from KU::LDAP::Entry::Base

Instance Method Details

#descriptionObject



12
13
14
# File 'lib/ku/ldap/entry/group.rb', line 12

def description
  self[:description]
end

#idObject



8
9
10
# File 'lib/ku/ldap/entry/group.rb', line 8

def id
  self[:cn]
end

#member?(id) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/ku/ldap/entry/group.rb', line 20

def member? id
  members.include? id
end

#membersObject



16
17
18
# File 'lib/ku/ldap/entry/group.rb', line 16

def members
  @entry[:memberuid]
end