class RSolr::Response::PaginatedDocSet

def total_pages

Calcuates the total pages from 'numFound' and 'rows'
def total_pages
  @total_pages ||= per_page > 0 ? (total / per_page.to_f).ceil : 1
end