Sha256: e61a51792b1c27209b30e884bf93b1f73702600a49417dee0f87fbbc8c160aa1

Contents?: true

Size: 306 Bytes

Versions: 31

Compression:

Stored size: 306 Bytes

Contents

# frozen_string_literal: true
module Blacklight::Solr::Response::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.zero?
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
blacklight-6.25.0 lib/blacklight/solr/response/response.rb
blacklight-6.24.0 lib/blacklight/solr/response/response.rb
blacklight-6.23.0 lib/blacklight/solr/response/response.rb
blacklight-6.22.0 lib/blacklight/solr/response/response.rb
blacklight-6.21.0 lib/blacklight/solr/response/response.rb
blacklight-6.20.0 lib/blacklight/solr/response/response.rb
blacklight-6.19.2 lib/blacklight/solr/response/response.rb
blacklight-6.19.1 lib/blacklight/solr/response/response.rb
blacklight-6.19.0 lib/blacklight/solr/response/response.rb
blacklight-6.18.0 lib/blacklight/solr/response/response.rb
blacklight-6.17.0 lib/blacklight/solr/response/response.rb
blacklight-6.16.0 lib/blacklight/solr/response/response.rb
blacklight-6.15.0 lib/blacklight/solr/response/response.rb
blacklight-6.14.1 lib/blacklight/solr/response/response.rb
blacklight-6.14.0 lib/blacklight/solr/response/response.rb
blacklight-6.13.0 lib/blacklight/solr/response/response.rb
blacklight-6.12.0 lib/blacklight/solr/response/response.rb
blacklight-6.11.2 lib/blacklight/solr/response/response.rb
blacklight-6.11.1 lib/blacklight/solr/response/response.rb
blacklight-6.11.0 lib/blacklight/solr/response/response.rb