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.0.beta.16 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.15 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.14 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.13 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.12 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.11 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.10 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.9 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.8 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.7 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.6 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.4 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.3 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.2 lib/ddr/auth/roles/role_type.rb
ddr-models-3.0.0.beta.1 lib/ddr/auth/roles/role_type.rb