{"action":"created","issue":{"url":"https://api.github.com/repos/marmelab/restful.js/issues/13","labels_url":"https://api.github.com/repos/marmelab/restful.js/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/marmelab/restful.js/issues/13/comments","events_url":"https://api.github.com/repos/marmelab/restful.js/issues/13/events","html_url":"https://github.com/marmelab/restful.js/issues/13","id":61913866,"number":13,"title":"addRequestInterceptor - No direct access to instantiated instance object","user":{"login":"tkambler","id":4448053,"avatar_url":"https://avatars.githubusercontent.com/u/4448053?v=3","gravatar_id":"","url":"https://api.github.com/users/tkambler","html_url":"https://github.com/tkambler","followers_url":"https://api.github.com/users/tkambler/followers","following_url":"https://api.github.com/users/tkambler/following{/other_user}","gists_url":"https://api.github.com/users/tkambler/gists{/gist_id}","starred_url":"https://api.github.com/users/tkambler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkambler/subscriptions","organizations_url":"https://api.github.com/users/tkambler/orgs","repos_url":"https://api.github.com/users/tkambler/repos","events_url":"https://api.github.com/users/tkambler/events{/privacy}","received_events_url":"https://api.github.com/users/tkambler/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-15T22:41:56Z","updated_at":"2015-06-30T15:46:13Z","closed_at":"2015-06-30T15:46:13Z","body":"It doesn't appear that it is currently possible to assign custom methods, etc... to an entity via `addResponseInterceptor`:\r\n\r\n```\r\nusers.addResponseInterceptor(function(users, headers, method, url) {\r\n\tusers.forEach(function(user) {\r\n\t\t// user === plain object literal. Shouldn't this be the instantiated entity, as is the case w/ Restangular?\r\n\t});\r\n    return users;\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/marmelab/restful.js/issues/comments/117234251","html_url":"https://github.com/marmelab/restful.js/issues/13#issuecomment-117234251","issue_url":"https://api.github.com/repos/marmelab/restful.js/issues/13","id":117234251,"user":{"login":"fzaninotto","id":99944,"avatar_url":"https://avatars.githubusercontent.com/u/99944?v=3","gravatar_id":"","url":"https://api.github.com/users/fzaninotto","html_url":"https://github.com/fzaninotto","followers_url":"https://api.github.com/users/fzaninotto/followers","following_url":"https://api.github.com/users/fzaninotto/following{/other_user}","gists_url":"https://api.github.com/users/fzaninotto/gists{/gist_id}","starred_url":"https://api.github.com/users/fzaninotto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fzaninotto/subscriptions","organizations_url":"https://api.github.com/users/fzaninotto/orgs","repos_url":"https://api.github.com/users/fzaninotto/repos","events_url":"https://api.github.com/users/fzaninotto/events{/privacy}","received_events_url":"https://api.github.com/users/fzaninotto/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T15:46:13Z","updated_at":"2015-06-30T15:46:13Z","body":"Fixed by #32"}}