lib/cocina/models/sequence.rb in cocina-models-0.29.0 vs lib/cocina/models/sequence.rb in cocina-models-0.30.0
- old
+ new
@@ -1,13 +1,10 @@
# frozen_string_literal: true
module Cocina
module Models
- # Metadata for a sequence. See http://sul-dlss.github.io/cocina-models/maps/Sequence.json
class Sequence < Struct
- attribute :viewingDirection, Types::String.enum('left-to-right',
- 'right-to-left',
- 'top-to-bottom',
- 'bottom-to-top').optional
+ # The direction that a sequence of canvases should be displayed to the user
+ attribute :viewingDirection, Types::Strict::String.enum('right-to-left', 'left-to-right').meta(omittable: true)
end
end
end