Class: JSONAPI::Resources::OptionalPaginators::NullPaginator
- Inherits:
-
Paginator
- Object
- Paginator
- JSONAPI::Resources::OptionalPaginators::NullPaginator
- Defined in:
- lib/jsonapi/resources/optional_paginators/null_paginator.rb
Instance Method Summary collapse
- #apply(relation, _order_options) ⇒ Object
- #calculate_page_count(_record_count) ⇒ Object
-
#initialize(params) ⇒ NullPaginator
constructor
A new instance of NullPaginator.
Constructor Details
#initialize(params) ⇒ NullPaginator
Returns a new instance of NullPaginator.
7 |
# File 'lib/jsonapi/resources/optional_paginators/null_paginator.rb', line 7 def initialize(params); end |
Instance Method Details
#apply(relation, _order_options) ⇒ Object
9 10 11 |
# File 'lib/jsonapi/resources/optional_paginators/null_paginator.rb', line 9 def apply(relation, ) relation end |
#calculate_page_count(_record_count) ⇒ Object
13 14 15 |
# File 'lib/jsonapi/resources/optional_paginators/null_paginator.rb', line 13 def calculate_page_count(_record_count) 1 end |