I’m getting this array returned from an API in my Rails app:
[#<GoCardless::User created_at=Wed, 13 Jun 2012 10:41:35 +0000, email="bob@cat.com", first_name="bob", id="03hhsXP5AX", last_name="cat">]
How can I work with it? I’d like to get its ID, for instance, but whilst it looks like an arel relation, its class is an array, and it’s baffling me.
Just get the first element of the array.