Sha256: 88d4247210e8d8ba6a8dd5657e4a9e29b1fff50a80c812543ae17f0ef5ede5e5

Contents?: true

Size: 273 Bytes

Versions: 33

Compression:

Stored size: 273 Bytes

Contents

module Blacklight::SolrResponse::Response
  def response
    self[:response] || {}
  end
  
  # short cut to response['numFound']
  def total
    response[:numFound].to_s.to_i
  end
  
  def start
    response[:start].to_s.to_i
  end

  def empty?
    total == 0
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
blacklight-5.15.0 lib/blacklight/solr_response/response.rb
blacklight-5.14.0 lib/blacklight/solr_response/response.rb
blacklight-5.13.1 lib/blacklight/solr_response/response.rb
blacklight-5.13.0 lib/blacklight/solr_response/response.rb
blacklight-5.11.3 lib/blacklight/solr_response/response.rb
blacklight-5.12.1 lib/blacklight/solr_response/response.rb
blacklight-5.12.0 lib/blacklight/solr_response/response.rb
blacklight-5.10.3 lib/blacklight/solr_response/response.rb
blacklight-5.9.4 lib/blacklight/solr_response/response.rb
blacklight-5.11.2 lib/blacklight/solr_response/response.rb
blacklight-5.11.1 lib/blacklight/solr_response/response.rb
blacklight-5.11.0 lib/blacklight/solr_response/response.rb
blacklight-5.10.2 lib/blacklight/solr_response/response.rb
blacklight-5.10.1 lib/blacklight/solr_response/response.rb
blacklight-5.10.0 lib/blacklight/solr_response/response.rb
blacklight-5.9.3 lib/blacklight/solr_response/response.rb
blacklight-5.9.2 lib/blacklight/solr_response/response.rb
blacklight-5.9.1 lib/blacklight/solr_response/response.rb
blacklight-5.9.0 lib/blacklight/solr_response/response.rb
blacklight-5.8.2 lib/blacklight/solr_response/response.rb