Sha256: 73555ae178608c4378d796119f32bf7a37740186e6e62d3fcc0f779ef8ee05bf
Contents?: true
Size: 571 Bytes
Versions: 8
Compression:
Stored size: 571 Bytes
Contents
module Geoblacklight module Relation class RelationResponse attr_reader :search_id def initialize(id, repository) @search_id = 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
8 entries across 8 versions & 1 rubygems