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

Includes:
Kaminari::ConfigurationMethods::ClassMethods, Kaminari::PageScopeMethods
Included in:
Blacklight::Solr::Response, Group, GroupResponse
Defined in:
lib/blacklight/solr/response/pagination_methods.rb

Instance Method Summary collapse

Instance Method Details

#entry_name(options) ⇒ Object

Meant to have the same signature as Kaminari::PaginatableArray#entry_name



26
27
28
# File 'lib/blacklight/solr/response/pagination_methods.rb', line 26

def entry_name(options)
  I18n.t('blacklight.entry_name.default', count: options[:count])
end

#limit_valueObject

:nodoc:



6
7
8
# File 'lib/blacklight/solr/response/pagination_methods.rb', line 6

def limit_value #:nodoc:
  rows
end

#offset_valueObject

:nodoc:



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

def offset_value #:nodoc:
  start
end

#sizeObject

Should return response documents size, not hash size



20
21
22
# File 'lib/blacklight/solr/response/pagination_methods.rb', line 20

def size
  total_count
end

#total_countObject

:nodoc:



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

def total_count #:nodoc:
  total
end