-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More convenient indexing of array members #29
Comments
Please submit a pull request.
|
Good to hear you're open to the idea. I hope to get to this at some point in the future. |
No problem, it's a potentially breaking change, so please add something to the ChangeLog describing it. I'll fill in the version number and date. |
I find
EmbedlyObject
's behaviour to returnnil
for non-existent members convenient. It would be even more convenient if (hash and) array members would return an object that behaves in a similar way, so that for exampleresponse.images.first.name
doesn't give an error when there are no associated images. I would have expectedresponse.images
to be something like anEmbedlyObject
.Right now I'm wrapping the response in an object containing something like
but believe it could better be solved here.
The text was updated successfully, but these errors were encountered: