Net::G...ultSet(3pm)
π¦ NAME π¦
Net::GitHub::V3::ResultSet β the GitHub query iteration helper, bestie π
Like, it's part of the User Contributed Perl Documentation squad, and its whole job is helping you vibe through GitHub results one lil item at a time.
β¨ SYNOPSIS β¨
So this one's not for you directly, okay? It's for use by the role Net::GitHub::V3::Query β it's the backstage crew, not the main character π
use Net::GitHub::V3::ResultSet;
$result_set = Net::GitHub::V3::ResultSet->new( url => $url );
...
And that's the whole vibe. ... goes here, ... goes there, iconic behavior, no notes π
πΈ DESCRIPTION πΈ
okay so real talk: objects in this class are literally just holding the current status of a GitHub query while you're iterating over individual items. That's it. That's the job. π«Ά
And the best part? This happens behind the scenes β if you're a user of Net::GitHub::V3, you genuinely do not need to know about this class at all. It's giving β¨invisible laborβ¨. iykyk.
Every single one of the V3 submodules keeps one of these objects for every different pageable query it handles. So yeah, they're kind of everywhere, just quietly doing their thing π
π The Attributes & What They Actually Do π
urlβ Required for creating the object, no exceptions bestie. This is the URL where a pageable GitHub query starts. It gets used to identify the pagination when retrieving the next object, and also for the very first call to the GitHub API. So it's doing double duty, main character energy fr fr πresultsβ An array reference holding the current page, exactly as retrieved by the most recent call to the GitHub API. Fresh off the API, still warm πcursorβ An integer pointing to the "next" position within the current page, which is where thenextmethod will fetch an item from. It's literally just a lil pointer being like "you are here π"doneβ A boolean, and when it's true it means there's no more item to be fetched from the API. The current results are the last. That's it. That's the end of the road, we've hit the wall, pack it up πnext_urlβ The url from which more results can be fetched. It will be empty if there are no more pages. So an emptynext_url= we're done-zo, no more content, the well has run dry π
lowkey important: thatdoneflag and an emptynext_urlare your two lil signals that the iteration is over. don't @ me, that's just how it is π§
and that's the whole page, bestie!! π¦β¨
This lil legend came to you courtesy of perl v5.36.0, dated 2022-10-08 β so go forth, iterate responsibly, and remember: the results are always in the results ππΈπ
π¦ where this page comes from
- ubuntu noble: libnet-github-perl 1.05-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libnet-github-perl 1.05-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libnet-github-perl 1.05-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms