Method: Elasticsearch::Model::Response::Pagination::WillPaginate#__default_per_page

Defined in:
lib/elasticsearch/model/response/pagination/will_paginate.rb

#__default_per_pageObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the models’s ‘per_page` value or the default

[View source]

104
105
106
# File 'lib/elasticsearch/model/response/pagination/will_paginate.rb', line 104

def __default_per_page
  klass.respond_to?(:per_page) && klass.per_page || ::WillPaginate.per_page
end