intercom/intercom-ruby — pull request #26 by EvanWillms (2013-04-03 20:24:13+00:00)
Title: Enumerable tag.users

Hey intercom folks,

I'm thrilled to have API access to tag members and super impressed that you did a simultaneous rollout of client gem support.

I was a little disappointed that I couldn't enumerate over tag members as Intercom::User objects to work with the records, so I've extended the UserCollectionProxy to take a list of users (by email address) and included tag.users to it returns an enumerable collection of User objects that I can work with as expected.

There's no spec coverage or documentation, sorry. I don't really expect you to take this patch as provided, as it's a bit of a hack. But it addresses my personal use case and I hope you use it as inspiration.

Cheers,
Evan