Sha256: ed38bd7073aedf3f31ec221c40b4b3c38161249ac10f5d108a107c22b28d9bf5
Contents?: true
Size: 622 Bytes
Versions: 7
Compression:
Stored size: 622 Bytes
Contents
module Geoblacklight module Relation class RelationResponse attr_reader :search_id, :link_id def initialize(id, repository) @link_id = id @search_id = RSolr.solr_escape(id) @repository = repository end def ancestors @ancestors ||= Geoblacklight::Relation::Ancestors.new(@search_id, @repository).results end def descendants @descendants ||= Geoblacklight::Relation::Descendants.new(@search_id, @repository).results end def empty? !(ancestors['numFound'] > 0 || descendants['numFound'] > 0) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems