Sha256: 4b6e32483fc430bfb46de634fc1622c0500bb779811913fab8e09f3ec628ef24

Contents?: true

Size: 474 Bytes

Versions: 35

Compression:

Stored size: 474 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 = title.freeze
          @description = description.freeze
          @permissions = permissions.freeze
          freeze
        end

        def to_s
          title
        end
        # alias_method :to_str, :to_s

      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
ddr-models-3.0.8 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.7 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.6 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.5 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.4 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.3 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.2 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.1 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.rc6 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.rc5 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.rc4 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.rc3 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.rc2 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.rc1 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.22 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.21 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.20 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.18 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.17 lib/ddr/auth/roles/role_type.rb