如何使用 Ruby 推特 gem 获取给定 ID/handle 的关注者列表?

How do I use the Ruby twitter gem to get a list of followers for a given ID/handle?

我想使用 Twitter gem 的 v5.0,但我无法找到了解如何获取关注者列表的文档,给定句柄。

看起来以前的版本有一个看起来像 Twitter.follower_ids('ID to lookup') 的方法,但现在不再有效了。

我不知道是否有更简单的方法来浏览 RDoc 文档,但我必须首先深入研究代码,注意 RDoc 注释,然后才意识到 this is the page 哪些文档记录了其中的一些内容我想要的行为。

# configure client with secrets and access keys client.followers 'screen_name_of_interest'

这 returns 一定数量的关注者 - 但我仍然不知道如何计算出有多少关注者,以及如何使用游标检索更多。