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
-
#entry_name(options) ⇒ Object
Meant to have the same signature as Kaminari::PaginatableArray#entry_name.
-
#limit_value ⇒ Object
:nodoc:.
-
#offset_value ⇒ Object
:nodoc:.
-
#size ⇒ Object
Should return response documents size, not hash size.
-
#total_count ⇒ Object
:nodoc:.
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() I18n.t('blacklight.entry_name.default', count: [:count]) end |
#limit_value ⇒ Object
:nodoc:
6 7 8 |
# File 'lib/blacklight/solr/response/pagination_methods.rb', line 6 def limit_value #:nodoc: rows end |
#offset_value ⇒ Object
:nodoc:
10 11 12 |
# File 'lib/blacklight/solr/response/pagination_methods.rb', line 10 def offset_value #:nodoc: start end |
#size ⇒ Object
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_count ⇒ Object
:nodoc:
14 15 16 |
# File 'lib/blacklight/solr/response/pagination_methods.rb', line 14 def total_count #:nodoc: total end |