Reference documentation and code samples for the gapic-common class Gapic::Rest::PagedEnumerable::Page.
A class to represent a page in a PagedEnumerable. This also implements Enumerable, so it can iterate over the
resource elements.
Inherits
Object
Includes
Enumerable
Methods
#each
defeach()->Enumerator
Iterate over the resources.
Yields
(Object) — Gives the resource objects in the page.
Returns
(Enumerator) — if no block is provided
#next_page_token
defnext_page_token()->String
The page token to be used for the next RPC call, or the empty string if there is no next page.
Returns
(String)
#next_page_token?
defnext_page_token?()->Boolean
Whether the next_page_token exists and is not empty
Returns
(Boolean)
#resources
defresources()->Array
Resources in this page presented as an array.
When the iterable is a protobuf map, the .each |item| gives just the keys
to iterate like a normal hash it should be converted to an array first
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-11 UTC."],[],[]]