Class: DeviseOam::AuthenticatableEntity

Inherits:
Object
  • Object
show all
Defined in:
lib/devise_oam/authenticatable_entity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(login, ldap_roles = nil, attributes = {}) ⇒ AuthenticatableEntity

Returns a new instance of AuthenticatableEntity.



5
6
7
8
9
# File 'lib/devise_oam/authenticatable_entity.rb', line 5

def initialize(, ldap_roles = nil, attributes = {})
  @login = 
  @ldap_roles = parse_ldap_roles(ldap_roles) if ldap_roles
  @attributes = attributes
end

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



3
4
5
# File 'lib/devise_oam/authenticatable_entity.rb', line 3

def attributes
  @attributes
end

#ldap_rolesObject

Returns the value of attribute ldap_roles.



3
4
5
# File 'lib/devise_oam/authenticatable_entity.rb', line 3

def ldap_roles
  @ldap_roles
end

#loginObject

Returns the value of attribute login.



3
4
5
# File 'lib/devise_oam/authenticatable_entity.rb', line 3

def 
  @login
end