Class: Authorization::GuestUser

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

Overview

Represents a pseudo-user to facilitate guest users in applications

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(roles = [:guest]) ⇒ GuestUser

Returns a new instance of GuestUser.



682
683
684
# File 'lib/declarative_authorization/authorization.rb', line 682

def initialize (roles = [:guest])
  @role_symbols = roles
end

Instance Attribute Details

#role_symbolsObject (readonly)

Returns the value of attribute role_symbols.



681
682
683
# File 'lib/declarative_authorization/authorization.rb', line 681

def role_symbols
  @role_symbols
end