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.89.0 lib/cocina/models/descriptive_parallel_event.rb
cocina-models-0.88.0 lib/cocina/models/descriptive_parallel_event.rb
cocina-models-0.87.1 lib/cocina/models/descriptive_parallel_event.rb
cocina-models-0.87.0 lib/cocina/models/descriptive_parallel_event.rb
cocina-models-0.86.0 lib/cocina/models/descriptive_parallel_event.rb
cocina-models-0.85.0 lib/cocina/models/descriptive_parallel_event.rb
cocina-models-0.84.5 lib/cocina/models/descriptive_parallel_event.rb
cocina-models-0.84.4 lib/cocina/models/descriptive_parallel_event.rb
cocina-models-0.84.3 lib/cocina/models/descriptive_parallel_event.rb
cocina-models-0.84.2 lib/cocina/models/descriptive_parallel_event.rb
cocina-models-0.84.1 lib/cocina/models/descriptive_parallel_event.rb
cocina-models-0.84.0 lib/cocina/models/descriptive_parallel_event.rb
cocina-models-0.83.0 lib/cocina/models/descriptive_parallel_event.rb
cocina-models-0.82.0 lib/cocina/models/descriptive_parallel_event.rb
cocina-models-0.81.0 lib/cocina/models/descriptive_parallel_event.rb
cocina-models-0.80.0 lib/cocina/models/descriptive_parallel_event.rb