{"action":"created","issue":{"url":"https://api.github.com/repos/beauby/jsonapi_parser/issues/1","repository_url":"https://api.github.com/repos/beauby/jsonapi_parser","labels_url":"https://api.github.com/repos/beauby/jsonapi_parser/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/beauby/jsonapi_parser/issues/1/comments","events_url":"https://api.github.com/repos/beauby/jsonapi_parser/issues/1/events","html_url":"https://github.com/beauby/jsonapi_parser/pull/1","id":141289312,"number":1,"title":"Accessible hashes","user":{"login":"aars","id":129898,"avatar_url":"https://avatars.githubusercontent.com/u/129898?v=3","gravatar_id":"","url":"https://api.github.com/users/aars","html_url":"https://github.com/aars","followers_url":"https://api.github.com/users/aars/followers","following_url":"https://api.github.com/users/aars/following{/other_user}","gists_url":"https://api.github.com/users/aars/gists{/gist_id}","starred_url":"https://api.github.com/users/aars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aars/subscriptions","organizations_url":"https://api.github.com/users/aars/orgs","repos_url":"https://api.github.com/users/aars/repos","events_url":"https://api.github.com/users/aars/events{/privacy}","received_events_url":"https://api.github.com/users/aars/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/beauby/jsonapi_parser/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-16T14:20:17Z","updated_at":"2016-03-18T12:34:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/beauby/jsonapi_parser/pulls/1","html_url":"https://github.com/beauby/jsonapi_parser/pull/1","diff_url":"https://github.com/beauby/jsonapi_parser/pull/1.diff","patch_url":"https://github.com/beauby/jsonapi_parser/pull/1.patch"},"body":"This PR makes accessible:\r\n`@attributes_hash`, `@links_hash` and `@relationships_hash` from `JSON::API::Resource`\r\n`@data_hash` and `@links_hash` from `JSON::API::Relationship`\r\n\r\nMotivation:\r\nHash API is way more generic and can be used directly by `Sequel` or `ActiveRecord` for example. Getting these hashes from the `JSON::API::Document` is much nicer than keeping both `JSON::API::Document` and whatever hash it originally parsed in your application. You can now pass around `JSON::API::Document` objects within your application without having to access `@the_original_hash_or_json_string` as well.\r\n\r\nTests added. Let me know if there is something to be improved or clarified."},"comment":{"url":"https://api.github.com/repos/beauby/jsonapi_parser/issues/comments/198331439","html_url":"https://github.com/beauby/jsonapi_parser/pull/1#issuecomment-198331439","issue_url":"https://api.github.com/repos/beauby/jsonapi_parser/issues/1","id":198331439,"user":{"login":"aars","id":129898,"avatar_url":"https://avatars.githubusercontent.com/u/129898?v=3","gravatar_id":"","url":"https://api.github.com/users/aars","html_url":"https://github.com/aars","followers_url":"https://api.github.com/users/aars/followers","following_url":"https://api.github.com/users/aars/following{/other_user}","gists_url":"https://api.github.com/users/aars/gists{/gist_id}","starred_url":"https://api.github.com/users/aars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aars/subscriptions","organizations_url":"https://api.github.com/users/aars/orgs","repos_url":"https://api.github.com/users/aars/repos","events_url":"https://api.github.com/users/aars/events{/privacy}","received_events_url":"https://api.github.com/users/aars/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T12:34:45Z","updated_at":"2016-03-18T12:34:45Z","body":"Done!"}}