Class: Cocina::Models::RequestDRO
- Includes:
- Checkable
- Defined in:
- lib/cocina/models/request_dro.rb
Constant Summary collapse
- TYPES =
['http://cocina.sul.stanford.edu/models/object.jsonld', 'http://cocina.sul.stanford.edu/models/3d.jsonld', 'http://cocina.sul.stanford.edu/models/agreement.jsonld', 'http://cocina.sul.stanford.edu/models/book.jsonld', 'http://cocina.sul.stanford.edu/models/document.jsonld', 'http://cocina.sul.stanford.edu/models/geo.jsonld', 'http://cocina.sul.stanford.edu/models/image.jsonld', 'http://cocina.sul.stanford.edu/models/page.jsonld', 'http://cocina.sul.stanford.edu/models/photograph.jsonld', 'http://cocina.sul.stanford.edu/models/manuscript.jsonld', 'http://cocina.sul.stanford.edu/models/map.jsonld', 'http://cocina.sul.stanford.edu/models/media.jsonld', 'http://cocina.sul.stanford.edu/models/track.jsonld', 'http://cocina.sul.stanford.edu/models/webarchive-binary.jsonld', 'http://cocina.sul.stanford.edu/models/webarchive-seed.jsonld'].freeze
Class Method Summary collapse
Methods included from Checkable
#admin_policy?, #collection?, #dro?, #file?, #file_set?
Class Method Details
.new(attributes = default_attributes, safe = false, validate = true, &block) ⇒ Object
35 36 37 38 |
# File 'lib/cocina/models/request_dro.rb', line 35 def self.new(attributes = default_attributes, safe = false, validate = true, &block) Validator.validate(self, attributes.with_indifferent_access) if validate && name super(attributes, safe, &block) end |