Sha256: 904d18686003d1d430fe6d0da89df8d84a7a8733f635224e1ed9c2e038df1af4

Contents?: true

Size: 292 Bytes

Versions: 3

Compression:

Stored size: 292 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.1 lib/authoreyes/authorization/anonymous_user.rb
authoreyes-0.2.0 lib/authoreyes/authorization/anonymous_user.rb
authoreyes-0.1.1 lib/authoreyes/authorization/anonymous_user.rb