Class: IIIFManifest::V3::ManifestBuilder::IIIFManifest::Annotation

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

#bodyObject



248
249
250
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 248

def body
  inner_hash['body']
end

#body=(body) ⇒ Object



244
245
246
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 244

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

#indexObject



252
253
254
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 252

def index
  @index ||= SecureRandom.uuid
end

#initial_attributesObject



256
257
258
259
260
261
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 256

def initial_attributes
  {
    'type' => 'Annotation',
    'motivation' => 'painting'
  }
end