class XIVAPI::Dataclasses::Page(T)

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(__temp_555 : JSON::PullParser) #

Instance Method Detail

def pagination #

An Pagination class containing the pagination info for the request.


[View source]
def pagination=(_pagination : Pagination) #

def results #

An Array of classs for the results from the API. The Array will be of the classs of the generic type.


[View source]
def results=(_results : Array(T)) #

def to_json(json : JSON::Builder) #