Class: Cocina::Models::RequestCollection
- Includes:
- Checkable
- Defined in:
- lib/cocina/models/request_collection.rb
Constant Summary collapse
- TYPES =
['http://cocina.sul.stanford.edu/models/collection.jsonld', 'http://cocina.sul.stanford.edu/models/curated-collection.jsonld', 'http://cocina.sul.stanford.edu/models/user-collection.jsonld', 'http://cocina.sul.stanford.edu/models/exhibit.jsonld', 'http://cocina.sul.stanford.edu/models/series.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
23 24 25 26 |
# File 'lib/cocina/models/request_collection.rb', line 23 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 |