Class: Authorization::GuestUser
- Inherits:
-
Object
- Object
- Authorization::GuestUser
- Defined in:
- lib/declarative_authorization/authorization.rb
Overview
Represents a pseudo-user to facilitate guest users in applications
Instance Attribute Summary collapse
-
#role_symbols ⇒ Object
readonly
Returns the value of attribute role_symbols.
Instance Method Summary collapse
-
#initialize(roles = [:guest]) ⇒ GuestUser
constructor
A new instance of GuestUser.
Constructor Details
#initialize(roles = [:guest]) ⇒ GuestUser
Returns a new instance of GuestUser.
626 627 628 |
# File 'lib/declarative_authorization/authorization.rb', line 626 def initialize (roles = [:guest]) @role_symbols = roles end |
Instance Attribute Details
#role_symbols ⇒ Object (readonly)
Returns the value of attribute role_symbols.
625 626 627 |
# File 'lib/declarative_authorization/authorization.rb', line 625 def role_symbols @role_symbols end |