Sha256: 14e03739b49d8f4e69e043ef4b60ac0860f6b4dd2dde1aae0dfb913be3a70d7f

Contents?: true

Size: 1.06 KB

Versions: 4

Compression:

Stored size: 1.06 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    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

4 entries across 4 versions & 1 rubygems

Version Path
cocina-models-0.79.0 lib/cocina/models/contributor.rb
cocina-models-0.78.0 lib/cocina/models/contributor.rb
cocina-models-0.77.0 lib/cocina/models/contributor.rb
cocina-models-0.76.0 lib/cocina/models/contributor.rb