Class: Cocina::Models::RequestAdminPolicy

Inherits:
Struct
  • Object
show all
Includes:
Checkable
Defined in:
lib/cocina/models/request_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



17
18
19
20
# File 'lib/cocina/models/request_admin_policy.rb', line 17

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