Class: Cocina::Models::RequestDRO

Inherits:
Struct
  • Object
show all
Includes:
Checkable, Validatable
Defined in:
lib/cocina/models/request_dro.rb

Overview

A request to create a DRO. This has the same general structure as a DRO but doesn’t have externalIdentifier and doesn’t require the access subschema. If no access subschema is provided, these values will be inherited from the AdminPolicy.

Constant Summary collapse

TYPES =
['https://cocina.sul.stanford.edu/models/object',
'https://cocina.sul.stanford.edu/models/3d',
'https://cocina.sul.stanford.edu/models/agreement',
'https://cocina.sul.stanford.edu/models/book',
'https://cocina.sul.stanford.edu/models/document',
'https://cocina.sul.stanford.edu/models/geo',
'https://cocina.sul.stanford.edu/models/image',
'https://cocina.sul.stanford.edu/models/page',
'https://cocina.sul.stanford.edu/models/photograph',
'https://cocina.sul.stanford.edu/models/manuscript',
'https://cocina.sul.stanford.edu/models/map',
'https://cocina.sul.stanford.edu/models/media',
'https://cocina.sul.stanford.edu/models/track',
'https://cocina.sul.stanford.edu/models/webarchive-binary',
'https://cocina.sul.stanford.edu/models/webarchive-seed'].freeze

Method Summary

Methods included from Checkable

#admin_policy?, #collection?, #dro?, #file?, #file_set?

Methods included from Validatable

#new