Class: JSONAPI::Resources::OptionalPaginators::NullPaginator

Inherits:
Paginator
  • Object
show all
Defined in:
lib/jsonapi/resources/optional_paginators/null_paginator.rb

Instance Method Summary collapse

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, _order_options)
  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