class IIIF::Presentation::AnnotationList

Constants

TYPE

Public Class Methods

new(hsh={}) click to toggle source
# File lib/iiif/presentation/annotation_list.rb, line 17
def initialize(hsh={})
  hsh['@type'] = TYPE unless hsh.has_key? '@type'
  super(hsh)
end

Public Instance Methods

array_only_keys() click to toggle source
# File lib/iiif/presentation/annotation_list.rb, line 13
def array_only_keys; 
  super + %w{ resources }; 
end
required_keys() click to toggle source
# File lib/iiif/presentation/annotation_list.rb, line 9
def required_keys
  super + %w{ @id }
end
validate() click to toggle source
# File lib/iiif/presentation/annotation_list.rb, line 22
def validate
  # Each member or resources must be a kind of Annotation
end