Sha256: a5afc08ddf72a230310a7089613564c9bfa659a5d9ee49e808b4af879b5e12e3

Contents?: true

Size: 291 Bytes

Versions: 3

Compression:

Stored size: 291 Bytes

Contents

module Authoreyes
  module Authorization
    # Represents a pseudo-user to facilitate anonymous users in applications
    class AnonymousUser
      attr_reader :role_symbols
      def initialize(roles = [Authorization.default_role])
        @role_symbols = roles
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
authoreyes-0.2.4 lib/authoreyes/authorization/anonymous_user.rb
authoreyes-0.2.3 lib/authoreyes/authorization/anonymous_user.rb
authoreyes-0.2.2 lib/authoreyes/authorization/anonymous_user.rb