Class: IIIFManifest::ManifestBuilder::IIIFManifest::Canvas

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

#imagesObject



109
110
111
# File 'lib/iiif_manifest/manifest_builder/iiif_service.rb', line 109

def images
  inner_hash['images'] || []
end

#images=(images) ⇒ Object



113
114
115
# File 'lib/iiif_manifest/manifest_builder/iiif_service.rb', line 113

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

#initial_attributesObject



117
118
119
120
121
# File 'lib/iiif_manifest/manifest_builder/iiif_service.rb', line 117

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

#label=(label) ⇒ Object



105
106
107
# File 'lib/iiif_manifest/manifest_builder/iiif_service.rb', line 105

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