<commit_before>---
title: Handling Paginated Resources in Ruby
author: <NAME>
published: true
summary: Wrap your paginated collections in Enumerable goodness
author: <NAME>
description: Next time you write a client to an API, consider using the "recursive each" techique and Kernal#to_enum method to wrap your resource collection for paginated GET requests
pull_image: 'https://rossta.net/assets/images/icons/noun_63453.png'
series: Enumerable
tags:
- Code
- Ruby<commit_msg>Update meta description for pagination post<commit_after>---
title: Handling Paginated Resources in Ruby
author: <NAME>
published: true
summary: Wrap your paginated collections in Enumerable goodness
author: <NAME>
description: Extracting data from an API can get messy once pagination is involved. We'll look at a few ways of dealing with this complexity, including "recursive each" and Kernel#to_enum method to enumerate paginated resources
pull_image: 'https://rossta.net/assets/images/icons/noun_63453.png'
series: Enumerable
tags:
- Code
- Ruby
{'fraction_non_alphanumeric': 0.072265625, 'fraction_numerical': 0.009765625, 'mean_word_length': 5.699346405228758, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6644387', 'n_tokens_mistral': 295, 'n_tokens_neox': 276, 'n_words': 122}