Sha256: 520fd6bcc22e6ef8de60b8ca028fd4168322acf8dfc402fa2c46086802d46276
Contents?: true
Size: 582 Bytes
Versions: 20
Compression:
Stored size: 582 Bytes
Contents
# frozen_string_literal: true module Geoblacklight module Metadata ## # Initialize a new Metadata instance # @param [Geoblacklight::Reference] reference the reference for the metadata resource # @return [Geoblacklight::Metadata::Base] def self.instance(reference) begin klass = "Geoblacklight::Metadata::#{reference.type.capitalize}".constantize rescue Geoblacklight.logger.warn "Metadata type #{reference.type} is not supported" klass = Geoblacklight::Metadata::Base end klass.new(reference) end end end
Version data entries
20 entries across 20 versions & 1 rubygems