Sha256: 1ddb5350c4d1edbd33c7140355df2b3039ae8993037c7af98637c0d57e3adeda

Contents?: true

Size: 925 Bytes

Versions: 27

Compression:

Stored size: 925 Bytes

Contents

# frozen_string_literal: true

module Cocina
  module Models
    class RequestFile < Struct
      include Checkable

      TYPES = ['https://cocina.sul.stanford.edu/models/file'].freeze

      attribute :type, Types::Strict::String.enum(*RequestFile::TYPES)
      attribute :label, Types::Strict::String
      attribute :filename, Types::Strict::String
      attribute? :size, Types::Strict::Integer
      attribute :version, Types::Strict::Integer
      attribute? :hasMimeType, Types::Strict::String
      attribute? :externalIdentifier, Types::Strict::String
      attribute? :use, Types::Strict::String
      attribute :hasMessageDigests, Types::Strict::Array.of(MessageDigest).default([].freeze)
      attribute(:access, FileAccess.default { FileAccess.new })
      attribute(:administrative, FileAdministrative.default { FileAdministrative.new })
      attribute? :presentation, Presentation.optional
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
cocina-models-0.91.4 lib/cocina/models/request_file.rb
cocina-models-0.91.3 lib/cocina/models/request_file.rb
cocina-models-0.91.2 lib/cocina/models/request_file.rb
cocina-models-0.91.1 lib/cocina/models/request_file.rb
cocina-models-0.91.0 lib/cocina/models/request_file.rb
cocina-models-0.90.0 lib/cocina/models/request_file.rb
cocina-models-0.89.1 lib/cocina/models/request_file.rb
cocina-models-0.89.0 lib/cocina/models/request_file.rb
cocina-models-0.88.0 lib/cocina/models/request_file.rb
cocina-models-0.87.1 lib/cocina/models/request_file.rb
cocina-models-0.87.0 lib/cocina/models/request_file.rb
cocina-models-0.86.0 lib/cocina/models/request_file.rb
cocina-models-0.85.0 lib/cocina/models/request_file.rb
cocina-models-0.84.5 lib/cocina/models/request_file.rb
cocina-models-0.84.4 lib/cocina/models/request_file.rb
cocina-models-0.84.3 lib/cocina/models/request_file.rb
cocina-models-0.84.2 lib/cocina/models/request_file.rb
cocina-models-0.84.1 lib/cocina/models/request_file.rb
cocina-models-0.84.0 lib/cocina/models/request_file.rb
cocina-models-0.83.0 lib/cocina/models/request_file.rb