Class: JSONAPI::Paginator
- Inherits:
-
Object
- Object
- JSONAPI::Paginator
show all
- Defined in:
- lib/jsonapi/paginator.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(_params) ⇒ Paginator
Returns a new instance of Paginator.
5
6
|
# File 'lib/jsonapi/paginator.rb', line 5
def initialize(_params)
end
|
Class Method Details
.paginator_for(paginator) ⇒ Object
25
26
27
28
|
# File 'lib/jsonapi/paginator.rb', line 25
def paginator_for(paginator)
paginator_class_name = "#{paginator.to_s.camelize}Paginator"
paginator_class_name.safe_constantize if paginator_class_name
end
|
.requires_record_count ⇒ Object
19
20
21
22
23
|
# File 'lib/jsonapi/paginator.rb', line 19
def requires_record_count
false
end
|
Instance Method Details
#apply(_relation, _order_options) ⇒ Object
8
9
10
|
# File 'lib/jsonapi/paginator.rb', line 8
def apply(_relation, _order_options)
end
|
#links_page_params(_options = {}) ⇒ Object
12
13
14
15
16
|
# File 'lib/jsonapi/paginator.rb', line 12
def links_page_params(_options = {})
{}
end
|