Sha256: 69248fbfbf8959048a2d629f5feedc9cabde22234daf5c533a6b7e93ff77542e

Contents?: true

Size: 550 Bytes

Versions: 3

Compression:

Stored size: 550 Bytes

Contents

# frozen_string_literal: true

module Cocina
  module Models
    # attributes common to both FileSet and RequestFileSet
    # See http://sul-dlss.github.io/cocina-models/maps/Fileset.json
    module FileSetAttributes
      def self.included(obj)
        obj.attribute(:identification, FileSet::Identification.default { FileSet::Identification.new })
        obj.attribute :label, Types::Strict::String
        obj.attribute :type, Types::String.enum(*FileSet::TYPES)
        obj.attribute :version, Types::Strict::Integer
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cocina-models-0.29.0 lib/cocina/models/file_set_attributes.rb
cocina-models-0.28.0 lib/cocina/models/file_set_attributes.rb
cocina-models-0.27.0 lib/cocina/models/file_set_attributes.rb