lib/cocina/models/world_access.rb in cocina-models-0.67.1 vs lib/cocina/models/world_access.rb in cocina-models-0.68.0
- old
+ new
@@ -2,14 +2,14 @@
module Cocina
module Models
class WorldAccess < Struct
# Access level.
- attribute :access, Types::Strict::String.enum('world')
+ attribute :view, Types::Strict::String.enum('world')
# Download access level.
attribute :download, Types::Strict::String.enum('none', 'stanford', 'world')
- # If access is "location-based", which location should have access.
- attribute :readLocation, Types::Strict::String.optional.enum('').meta(omittable: true)
+ # Not used for this access type, must be null.
+ attribute :location, Types::Strict::String.optional.enum('').meta(omittable: true)
attribute :controlledDigitalLending, Types::Strict::Bool.enum(false).meta(omittable: true)
end
end
end