Sha256: 64b8b60cd61d9f14fcb69723adbc8c9700b13afb114c7ea610df485b6ed0a60b

Contents?: true

Size: 1.17 KB

Versions: 35

Compression:

Stored size: 1.17 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    # Property model for describing agents contributing in some way to the creation and history of the resource.
    class Contributor < Struct
      attribute :name, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      # Entity type of the contributor (person, organization, etc.). See https://github.com/sul-dlss/cocina-models/blob/main/docs/description_types.md for valid types.
      attribute? :type, Types::Strict::String
      # Status of the contributor relative to other parallel contributors (e.g. the primary author among a group of contributors).
      attribute? :status, Types::Strict::String
      attribute :role, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      # URL or other pointer to the location of the contributor information.
      attribute? :valueAt, Types::Strict::String
      attribute :parallelContributor, Types::Strict::Array.of(DescriptiveParallelContributor).default([].freeze)
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
cocina-models-0.99.1 lib/cocina/models/contributor.rb
cocina-models-0.99.0 lib/cocina/models/contributor.rb
cocina-models-0.98.1 lib/cocina/models/contributor.rb
cocina-models-0.98.0 lib/cocina/models/contributor.rb
cocina-models-0.96.0 lib/cocina/models/contributor.rb
cocina-models-0.95.1 lib/cocina/models/contributor.rb
cocina-models-0.95.0 lib/cocina/models/contributor.rb
cocina-models-0.94.2 lib/cocina/models/contributor.rb
cocina-models-0.94.1 lib/cocina/models/contributor.rb
cocina-models-0.94.0 lib/cocina/models/contributor.rb
cocina-models-0.93.1 lib/cocina/models/contributor.rb
cocina-models-0.93.0 lib/cocina/models/contributor.rb
cocina-models-0.92.0 lib/cocina/models/contributor.rb
cocina-models-0.91.4 lib/cocina/models/contributor.rb
cocina-models-0.91.3 lib/cocina/models/contributor.rb
cocina-models-0.91.2 lib/cocina/models/contributor.rb
cocina-models-0.91.1 lib/cocina/models/contributor.rb
cocina-models-0.91.0 lib/cocina/models/contributor.rb
cocina-models-0.90.0 lib/cocina/models/contributor.rb
cocina-models-0.89.1 lib/cocina/models/contributor.rb