Class: IIIFManifest::V3::ManifestBuilder::IIIFManifest::AnnotationPage

Inherits:
IIIFManifest::V3::ManifestBuilder::IIIFService show all
Defined in:
lib/iiif_manifest/v3/manifest_builder/iiif_service.rb

Instance Attribute Summary

Attributes inherited from ManifestBuilder::IIIFService

#inner_hash

Instance Method Summary collapse

Methods inherited from ManifestBuilder::IIIFService

#initialize

Constructor Details

This class inherits a constructor from IIIFManifest::ManifestBuilder::IIIFService

Instance Method Details

#indexObject



174
175
176
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 174

def index
  @index ||= SecureRandom.uuid
end

#initial_attributesObject



178
179
180
181
182
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 178

def initial_attributes
  {
    'type' => 'AnnotationPage'
  }
end

#itemsObject



166
167
168
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 166

def items
  inner_hash['items'] ||= []
end

#items=(items) ⇒ Object



170
171
172
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 170

def items=(items)
  inner_hash['items'] = items
end