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

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

#initial_attributesObject



122
123
124
125
126
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 122

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

#itemsObject



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

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

#items=(items) ⇒ Object



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

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

#labelObject



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

def label
  inner_hash['label']
end

#label=(label) ⇒ Object



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

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