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
16 17 18 |
# File 'lib/blacklight/solr/response/response.rb', line 16 def empty? total.zero? end |
#response ⇒ Object
3 4 5 |
# File 'lib/blacklight/solr/response/response.rb', line 3 def response self[:response] || {} end |
#start ⇒ Object
12 13 14 |
# File 'lib/blacklight/solr/response/response.rb', line 12 def start response[:start].to_s.to_i end |
#total ⇒ Object
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 |