Sha256: 394e2011ea9ebe737a11987701f001fbeb0e173fc96e6004095e0f68310a36f3

Contents?: true

Size: 1.05 KB

Versions: 36

Compression:

Stored size: 1.05 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    # Value model for multiple representations of information about the same event (e.g. in different languages).
    class DescriptiveParallelEvent < Struct
      attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      # Description of the event (creation, publication, etc.).
      attribute? :type, Types::Strict::String
      # The preferred display label to use for the event in access systems.
      attribute? :displayLabel, Types::Strict::String
      attribute :date, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
      attribute :contributor, Types::Strict::Array.of(Contributor).default([].freeze)
      attribute :location, 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)
      attribute? :valueLanguage, DescriptiveValueLanguage.optional
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

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