Method: Origen::Users::User#method_missing

Defined in:
lib/origen/users/user.rb

#method_missing(method, *args, &block) ⇒ Object

Provides methods to access attributes available from LDAP



142
143
144
145
146
147
148
149
150
151
152
153
# File 'lib/origen/users/user.rb', line 142

def method_missing(method, *args, &block)
  l = Origen.ldap.lookup(self)
  if l
    if l.attribute_names.include?(method)
      l[method]
    else
      super
    end
  else
    super
  end
end