Module: Blacklight::Solr::Response::Response

Included in:
Blacklight::Solr::Response
Defined in:
lib/blacklight/solr/response/response.rb

Instance Method Summary collapse

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/blacklight/solr/response/response.rb', line 16

def empty?
  total.zero?
end

#responseObject



3
4
5
# File 'lib/blacklight/solr/response/response.rb', line 3

def response
  self[:response] || {}
end

#startObject



12
13
14
# File 'lib/blacklight/solr/response/response.rb', line 12

def start
  response[:start].to_s.to_i
end

#totalObject

short cut to response



8
9
10
# File 'lib/blacklight/solr/response/response.rb', line 8

def total
  response[:numFound].to_s.to_i
end