Class: IIIFManifest::ManifestBuilder::IIIFManifest::Sequence

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

Instance Attribute Summary

Attributes inherited from IIIFManifest::ManifestBuilder::IIIFService

#inner_hash

Instance Method Summary collapse

Methods inherited from IIIFManifest::ManifestBuilder::IIIFService

#initialize

Constructor Details

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

Instance Method Details

#canvasesObject



89
90
91
# File 'lib/iiif_manifest/manifest_builder/iiif_service.rb', line 89

def canvases
  inner_hash['canvases'] || []
end

#canvases=(canvases) ⇒ Object



93
94
95
# File 'lib/iiif_manifest/manifest_builder/iiif_service.rb', line 93

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

#initial_attributesObject



97
98
99
100
101
# File 'lib/iiif_manifest/manifest_builder/iiif_service.rb', line 97

def initial_attributes
  {
    '@type' => 'sc:Sequence'
  }
end