class XIVAPI::Dataclasses::Pagination
- XIVAPI::Dataclasses::Pagination
- Reference
- Object
Overview
Dataclass for pagination data that is returned for paginated lists that come from certain API endpoints.
Defined in:
dataclasses/other/pagination.crConstructors
Instance Method Summary
-
#next_page : Int32?
The number of the next page, or nil if there are none
- #next_page=(_next_page : ::Union(Int32, Nil))
-
#page : Int32
The number of the current page
- #page=(_page : Int32)
-
#prev_page : Int32?
The number of the previous page, or nil if there are none
- #prev_page=(_prev_page : ::Union(Int32, Nil))
-
#results : Int32
The number of results on the current page
- #results=(_results : Int32)
-
#results_per_page : Int32
The limit of results per page
- #results_per_page=(_results_per_page : Int32)
- #to_json(json : JSON::Builder)
-
#total_pages : Int32
The total number of pages for the request
- #total_pages=(_total_pages : Int32)
-
#total_results : Int32
The total number of results retrieved for the request
- #total_results=(_total_results : Int32)