Class: Cul::LDAP::Entry
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Cul::LDAP::Entry
- Defined in:
- lib/cul/ldap/entry.rb
Instance Method Summary collapse
- #email ⇒ Object
- #first_name ⇒ Object
- #last_name ⇒ Object
- #name ⇒ Object
- #organizational_unit ⇒ Object
- #title ⇒ Object
- #uni ⇒ Object
Instance Method Details
#email ⇒ Object
9 10 11 |
# File 'lib/cul/ldap/entry.rb', line 9 def email (self[:mail].empty?) ? "#{uni}@columbia.edu" : mail.first end |
#first_name ⇒ Object
13 14 15 |
# File 'lib/cul/ldap/entry.rb', line 13 def first_name self[:givenname].first end |
#last_name ⇒ Object
17 18 19 |
# File 'lib/cul/ldap/entry.rb', line 17 def last_name self[:sn].first end |
#name ⇒ Object
5 6 7 |
# File 'lib/cul/ldap/entry.rb', line 5 def name self[:cn].first end |
#organizational_unit ⇒ Object
21 22 23 |
# File 'lib/cul/ldap/entry.rb', line 21 def organizational_unit self[:ou].first end |
#title ⇒ Object
29 30 31 |
# File 'lib/cul/ldap/entry.rb', line 29 def title self[:title].first end |
#uni ⇒ Object
25 26 27 |
# File 'lib/cul/ldap/entry.rb', line 25 def uni self[:uni].first end |