gamache / hyperresource

A self-inflating Ruby client for hypermedia APIs. Not under active development.
http://hyperresource.com/doc
MIT License
304 stars 29 forks source link

Add support for `profile` attribute for links (other attributes?) #33

Open kookster opened 10 years ago

kookster commented 10 years ago

In our API we use the profile attribute of links extensively, but they are not available from the HyperResource::Link instances. It would be great to add this as an attribute for that class.

That also makes me wonder though about other link relation attributes that might be on the link. Should there be a way for any attribute of a link to be available, perhaps an attributes hash that has whatever was passed in to create the HyperResource::Link?