Sha256: 8225de68d30c28604d586b9dee59a6889e3b8e2e5e3e13ae1540d13130b7dc1b

Contents?: true

Size: 1.67 KB

Versions: 24

Compression:

Stored size: 1.67 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    class RequestFileSet < Struct
      include Checkable

      TYPES = ['http://cocina.sul.stanford.edu/models/resources/audio.jsonld',
               'http://cocina.sul.stanford.edu/models/resources/attachment.jsonld',
               'http://cocina.sul.stanford.edu/models/resources/document.jsonld',
               'http://cocina.sul.stanford.edu/models/resources/file.jsonld',
               'http://cocina.sul.stanford.edu/models/resources/image.jsonld',
               'http://cocina.sul.stanford.edu/models/resources/main-augmented.jsonld',
               'http://cocina.sul.stanford.edu/models/resources/main-original.jsonld',
               'http://cocina.sul.stanford.edu/models/resources/media.jsonld',
               'http://cocina.sul.stanford.edu/models/resources/object.jsonld',
               'http://cocina.sul.stanford.edu/models/resources/page.jsonld',
               'http://cocina.sul.stanford.edu/models/resources/permissions.jsonld',
               'http://cocina.sul.stanford.edu/models/resources/preview.jsonld',
               'http://cocina.sul.stanford.edu/models/resources/supplement.jsonld',
               'http://cocina.sul.stanford.edu/models/resources/3d.jsonld',
               'http://cocina.sul.stanford.edu/models/resources/thumb.jsonld',
               'http://cocina.sul.stanford.edu/models/resources/video.jsonld'].freeze

      attribute :type, Types::Strict::String.enum(*RequestFileSet::TYPES)
      attribute :label, Types::Strict::String
      attribute :version, Types::Strict::Integer
      attribute(:structural, RequestFileSetStructural.default { RequestFileSetStructural.new })
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
cocina-models-0.67.1 lib/cocina/models/request_file_set.rb
cocina-models-0.67.0 lib/cocina/models/request_file_set.rb
cocina-models-0.66.0 lib/cocina/models/request_file_set.rb
cocina-models-0.65.1 lib/cocina/models/request_file_set.rb
cocina-models-0.65.0 lib/cocina/models/request_file_set.rb
cocina-models-0.64.0 lib/cocina/models/request_file_set.rb
cocina-models-0.63.1 lib/cocina/models/request_file_set.rb
cocina-models-0.63.0 lib/cocina/models/request_file_set.rb
cocina-models-0.62.1 lib/cocina/models/request_file_set.rb
cocina-models-0.62.0 lib/cocina/models/request_file_set.rb
cocina-models-0.61.3 lib/cocina/models/request_file_set.rb
cocina-models-0.61.2 lib/cocina/models/request_file_set.rb
cocina-models-0.61.1 lib/cocina/models/request_file_set.rb
cocina-models-0.61.0 lib/cocina/models/request_file_set.rb
cocina-models-0.60.0 lib/cocina/models/request_file_set.rb
cocina-models-0.59.1 lib/cocina/models/request_file_set.rb
cocina-models-0.59.0 lib/cocina/models/request_file_set.rb
cocina-models-0.58.2 lib/cocina/models/request_file_set.rb
cocina-models-0.58.1 lib/cocina/models/request_file_set.rb
cocina-models-0.58.0 lib/cocina/models/request_file_set.rb