class XIVAPI::Dataclasses::Page(T)
- XIVAPI::Dataclasses::Page(T)
- Reference
- Object
Overview
A class that represents a page of results from paginated endpoints. The Page class is a generic, so that we can use it for all kinds of endpoints.
Defined in:
dataclasses/other/page.crConstructors
Instance Method Summary
-
#pagination
An
Pagination
class containing the pagination info for the request. - #pagination=(_pagination : Pagination)
-
#results
An Array of classs for the results from the API.
- #results=(_results : Array(T))
- #to_json(json : JSON::Builder)
Constructor Detail
Instance Method Detail
def results
#
An Array of classs for the results from the API. The Array will be of the classs of the generic type.