Class: Spotlight::Resources::IiifManifest::Metadata
- Inherits:
-
Object
- Object
- Spotlight::Resources::IiifManifest::Metadata
- Defined in:
- app/models/spotlight/resources/iiif_manifest.rb
Overview
A simple class to map the metadata field
in a IIIF document to label/value pairs
This is intended to be overriden by an
application if a different metadata
strucure is used by the consumer
Instance Method Summary collapse
-
#initialize(manifest) ⇒ Metadata
constructor
A new instance of Metadata.
- #to_solr ⇒ Object
Constructor Details
#initialize(manifest) ⇒ Metadata
Returns a new instance of Metadata.
188 189 190 |
# File 'app/models/spotlight/resources/iiif_manifest.rb', line 188 def initialize(manifest) @manifest = manifest end |
Instance Method Details
#to_solr ⇒ Object
192 193 194 |
# File 'app/models/spotlight/resources/iiif_manifest.rb', line 192 def to_solr .merge() end |