Sha256: 9cc2d6c98ce5085a18ae1fb17bbdd3ccf54e6cb3d48a8cbb291dc018189a4089

Contents?: true

Size: 604 Bytes

Versions: 17

Compression:

Stored size: 604 Bytes

Contents

# frozen_string_literal: true

module Cocina
  module Models
    class LocationBasedAccess < Struct
      # Access level.
      attribute :view, Types::Strict::String.enum('location-based')
      # Download access level.
      attribute :download, Types::Strict::String.enum('location-based', 'none')
      # If access or download is "location-based", which location should have access.
      attribute :location, Types::Strict::String.enum('spec', 'music', 'ars', 'art', 'hoover', 'm&m')
      attribute :controlledDigitalLending, Types::Strict::Bool.enum(false).meta(omittable: true)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
cocina-models-0.75.0 lib/cocina/models/location_based_access.rb
cocina-models-0.74.1 lib/cocina/models/location_based_access.rb
cocina-models-0.74.0 lib/cocina/models/location_based_access.rb
cocina-models-0.73.6 lib/cocina/models/location_based_access.rb
cocina-models-0.73.5 lib/cocina/models/location_based_access.rb
cocina-models-0.73.4 lib/cocina/models/location_based_access.rb
cocina-models-0.73.3 lib/cocina/models/location_based_access.rb
cocina-models-0.73.2 lib/cocina/models/location_based_access.rb
cocina-models-0.73.1 lib/cocina/models/location_based_access.rb
cocina-models-0.73.0 lib/cocina/models/location_based_access.rb
cocina-models-0.72.0 lib/cocina/models/location_based_access.rb
cocina-models-0.71.0 lib/cocina/models/location_based_access.rb
cocina-models-0.70.0 lib/cocina/models/location_based_access.rb
cocina-models-0.69.2 lib/cocina/models/location_based_access.rb
cocina-models-0.69.1 lib/cocina/models/location_based_access.rb
cocina-models-0.69.0 lib/cocina/models/location_based_access.rb
cocina-models-0.68.0 lib/cocina/models/location_based_access.rb