Sha256: eade654a16b4f11644284984c8be9e304abf882a9fff516785b818e62c64638d

Contents?: true

Size: 1.8 KB

Versions: 17

Compression:

Stored size: 1.8 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/main-augmented',
               'https://cocina.sul.stanford.edu/models/resources/main-original',
               '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/permissions',
               'https://cocina.sul.stanford.edu/models/resources/preview',
               'https://cocina.sul.stanford.edu/models/resources/supplement',
               '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

17 entries across 17 versions & 1 rubygems

Version Path
cocina-models-0.89.1 lib/cocina/models/file_set.rb
cocina-models-0.89.0 lib/cocina/models/file_set.rb
cocina-models-0.88.0 lib/cocina/models/file_set.rb
cocina-models-0.87.1 lib/cocina/models/file_set.rb
cocina-models-0.87.0 lib/cocina/models/file_set.rb
cocina-models-0.86.0 lib/cocina/models/file_set.rb
cocina-models-0.85.0 lib/cocina/models/file_set.rb
cocina-models-0.84.5 lib/cocina/models/file_set.rb
cocina-models-0.84.4 lib/cocina/models/file_set.rb
cocina-models-0.84.3 lib/cocina/models/file_set.rb
cocina-models-0.84.2 lib/cocina/models/file_set.rb
cocina-models-0.84.1 lib/cocina/models/file_set.rb
cocina-models-0.84.0 lib/cocina/models/file_set.rb
cocina-models-0.83.0 lib/cocina/models/file_set.rb
cocina-models-0.82.0 lib/cocina/models/file_set.rb
cocina-models-0.81.0 lib/cocina/models/file_set.rb
cocina-models-0.80.0 lib/cocina/models/file_set.rb