Class: DeviseOam::AuthenticatableEntity
- Inherits:
-
Object
- Object
- DeviseOam::AuthenticatableEntity
- Defined in:
- lib/devise_oam/authenticatable_entity.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#ldap_roles ⇒ Object
Returns the value of attribute ldap_roles.
-
#login ⇒ Object
Returns the value of attribute login.
Instance Method Summary collapse
-
#initialize(login, ldap_roles = nil, attributes = {}) ⇒ AuthenticatableEntity
constructor
A new instance of AuthenticatableEntity.
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(login, ldap_roles = nil, attributes = {}) @login = login @ldap_roles = parse_ldap_roles(ldap_roles) if ldap_roles @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
3 4 5 |
# File 'lib/devise_oam/authenticatable_entity.rb', line 3 def attributes @attributes end |
#ldap_roles ⇒ Object
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 |
#login ⇒ Object
Returns the value of attribute login.
3 4 5 |
# File 'lib/devise_oam/authenticatable_entity.rb', line 3 def login @login end |