Sha256: 80167e5a0ffb9de542bdf736ab967878003a00595e97e053a4d3732e04930b11
Contents?: true
Size: 488 Bytes
Versions: 8
Compression:
Stored size: 488 Bytes
Contents
module Krikri ## # Subclass of Blacklight's SolrDocument. # Represents a single document returned from a query to the search index. class SearchIndexDocument < SolrDocument ## # Get the aggregation, populated with data from Marmotta, which corresponds # to this SearchIndexDocument # @return [DPLA::MAP::Aggregation, nil] def aggregation agg = DPLA::MAP::Aggregation.new(id) return nil unless agg.exists? agg.get agg end end end
Version data entries
8 entries across 8 versions & 1 rubygems