Class: Cocina::Models::AdminPolicy
- Includes:
- Checkable
- Defined in:
- lib/cocina/models/admin_policy.rb
Constant Summary collapse
- TYPES =
['http://cocina.sul.stanford.edu/models/admin_policy.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
19 20 21 22 |
# File 'lib/cocina/models/admin_policy.rb', line 19 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 |