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
      27 28 29  | 
    
      # File 'lib/blacklight/solr/response/pagination_methods.rb', line 27 def entry_name() I18n.t('blacklight.entry_name.default', count: [:count]) end  | 
  
#limit_value ⇒ Object
:nodoc:
      7 8 9  | 
    
      # File 'lib/blacklight/solr/response/pagination_methods.rb', line 7 def limit_value # :nodoc: rows end  | 
  
#offset_value ⇒ Object
:nodoc:
      11 12 13  | 
    
      # File 'lib/blacklight/solr/response/pagination_methods.rb', line 11 def offset_value # :nodoc: start end  | 
  
#size ⇒ Object
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_count ⇒ Object
:nodoc:
      15 16 17  | 
    
      # File 'lib/blacklight/solr/response/pagination_methods.rb', line 15 def total_count # :nodoc: total end  |