Class: IIIFManifest::V3::ManifestBuilder::IIIFManifest::Annotation
Instance Attribute Summary
#inner_hash
Instance Method Summary
collapse
#initialize
Instance Method Details
#body ⇒ Object
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
|
#index ⇒ Object
252
253
254
|
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 252
def index
@index ||= SecureRandom.uuid
end
|
#initial_attributes ⇒ Object
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
|