I was working with the official Ruby gem for the Zendesk API. It’s a quirky little thing but on the whole quite nice to work with. I did run into one little gotcha: in order to retrieve all the items in a paginated collection, you have to use the #all!
or #all
methods (the bang version raises an error), and you must pass it a block.
Another Ruby Enumerator trick
Reply