Class: IIIFManifest::V3::ManifestBuilder::IIIFManifest::Choice

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



157
158
159
160
161
162
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 157

def initial_attributes
  {
    'type' => 'Choice',
    'choiceHint' => 'user'
  }
end

#itemsObject



149
150
151
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 149

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

#items=(items) ⇒ Object



153
154
155
# File 'lib/iiif_manifest/v3/manifest_builder/iiif_service.rb', line 153

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