Class: Authorization::AnonymousUser
- Inherits:
-
Object
- Object
- Authorization::AnonymousUser
- Defined in:
- lib/declarative_authorization/authorization.rb
Overview
Represents a pseudo-user to facilitate anonymous users in applications
Instance Attribute Summary collapse
-
#role_symbols ⇒ Object
readonly
Returns the value of attribute role_symbols.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(roles = [Authorization.default_role]) ⇒ AnonymousUser
constructor
A new instance of AnonymousUser.
Constructor Details
#initialize(roles = [Authorization.default_role]) ⇒ AnonymousUser
Returns a new instance of AnonymousUser.
817 818 819 |
# File 'lib/declarative_authorization/authorization.rb', line 817 def initialize(roles = [Authorization.default_role]) @role_symbols = roles end |
Instance Attribute Details
#role_symbols ⇒ Object (readonly)
Returns the value of attribute role_symbols.
816 817 818 |
# File 'lib/declarative_authorization/authorization.rb', line 816 def role_symbols @role_symbols end |
Instance Method Details
#id ⇒ Object
821 |
# File 'lib/declarative_authorization/authorization.rb', line 821 def id; end |