Sha256: 8d99521027c5e6d6bcaa3bcf08403b9e0ebba7ec8a6d377a421c611d0eb8c2df

Contents?: true

Size: 1.49 KB

Versions: 19

Compression:

Stored size: 1.49 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    # Relevant groupings of Files. Also called a File Grouping.
    class FileSet < Struct
      include Checkable

      TYPES = ['https://cocina.sul.stanford.edu/models/resources/audio',
               'https://cocina.sul.stanford.edu/models/resources/attachment',
               'https://cocina.sul.stanford.edu/models/resources/document',
               'https://cocina.sul.stanford.edu/models/resources/file',
               'https://cocina.sul.stanford.edu/models/resources/image',
               'https://cocina.sul.stanford.edu/models/resources/media',
               'https://cocina.sul.stanford.edu/models/resources/object',
               'https://cocina.sul.stanford.edu/models/resources/page',
               'https://cocina.sul.stanford.edu/models/resources/preview',
               'https://cocina.sul.stanford.edu/models/resources/3d',
               'https://cocina.sul.stanford.edu/models/resources/thumb',
               'https://cocina.sul.stanford.edu/models/resources/video'].freeze

      # The content type of the Fileset.
      attribute :type, Types::Strict::String.enum(*FileSet::TYPES)
      attribute :externalIdentifier, Types::Strict::String
      # Primary processing label for a Fileset.
      attribute :label, Types::Strict::String
      # Version for the Fileset within SDR.
      attribute :version, Types::Strict::Integer
      attribute(:structural, FileSetStructural.default { FileSetStructural.new })
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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