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)


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

def empty?
  total.zero?
end

#responseObject



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

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

#startObject



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

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

#totalObject

short cut to response



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

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