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



232
233
234
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 232

def index
  @index ||= SecureRandom.uuid
end

#initial_attributesObject



236
237
238
239
240
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 236

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

#itemsObject



224
225
226
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 224

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

#items=(items) ⇒ Object



228
229
230
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 228

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