struct Laspatule::Models::Page(T)
- Laspatule::Models::Page(T)
- Struct
- Value
- Object
Overview
Represents a page of T
elements, when doing a query with pagination.
To get the first page, the query must be done without next_page token. To get the following page, the token next_page from the current page must be provided to the query.
If next_page if empty it means the current page is the last one.
next_page should be considered to be an opaque token.
Included Modules
- JSON::Serializable
Defined in:
laspatule/models/page.crConstructors
Instance Method Summary
- #clone
- #content : Array(T)
- #copy_with(content _content = @content, next_page _next_page = @next_page)
- #next_page : String | Nil