class

Zazu::Page

Inherits Reference < Object

One page of a cursor-paginated list endpoint: { "data": [...], "has_more": bool, "next_cursor": string|null }.

Constants

MAX_PER_PAGE = 100

The API's hard page-size cap.

Constructors

new(response : Response, fetcher : Proc(String | Nil, Page))
Source

Instance methods

data

The records on this page, as-is from the API.

Source
has_more

Whether more pages exist after this one.

Source
next

Fetches the following page, or returns nil when this is the last one.

Source
next_cursor

Cursor for the following page, when has_more.

Source
response

The underlying API response.

Source