Class: Authorization::AnonymousUser

Inherits:
Object
  • Object
show all
Defined in:
lib/declarative_authorization/authorization.rb

Overview

Represents a pseudo-user to facilitate anonymous users in applications

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(roles = [Authorization.default_role]) ⇒ AnonymousUser

Returns a new instance of AnonymousUser.


793
794
795
# File 'lib/declarative_authorization/authorization.rb', line 793

def initialize (roles = [Authorization.default_role])
  @role_symbols = roles
end

Instance Attribute Details

#role_symbolsObject (readonly)

Returns the value of attribute role_symbols


792
793
794
# File 'lib/declarative_authorization/authorization.rb', line 792

def role_symbols
  @role_symbols
end