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