Sha256: 18efa7ceccd800afbe77ef17be0807fbb577c060c14e60f41f7f34c4010e2169

Contents?: true

Size: 425 Bytes

Versions: 10

Compression:

Stored size: 425 Bytes

Contents

module Ddr
  module Auth
    module Roles
      class RoleType

        attr_reader :title, :description, :permissions
        alias_method :label, :title

        def initialize(title, description, permissions)
          @title, @description, @permissions = title, description, permissions
          @permissions.freeze
          freeze
        end

        def to_s
          title
        end

      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ddr-models-1.17.1 lib/ddr/auth/roles/role_type.rb
ddr-models-1.17.0 lib/ddr/auth/roles/role_type.rb
ddr-models-1.16.2 lib/ddr/auth/roles/role_type.rb
ddr-models-1.16.1 lib/ddr/auth/roles/role_type.rb
ddr-models-1.16.0 lib/ddr/auth/roles/role_type.rb
ddr-models-1.15.0 lib/ddr/auth/roles/role_type.rb
ddr-models-1.14.2 lib/ddr/auth/roles/role_type.rb
ddr-models-1.14.1 lib/ddr/auth/roles/role_type.rb
ddr-models-1.14.0 lib/ddr/auth/roles/role_type.rb
ddr-models-1.13.2 lib/ddr/auth/roles/role_type.rb