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



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

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

#limit_valueObject

:nodoc:



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

def limit_value # :nodoc:
  rows
end

#offset_valueObject

:nodoc:



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

def offset_value # :nodoc:
  start
end

#sizeObject

Should return response documents size, not hash size



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

def size
  total_count
end

#total_countObject

:nodoc:



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

def total_count # :nodoc:
  total
end