Skip to content

Commit

Permalink
add id and type
Browse files Browse the repository at this point in the history
  • Loading branch information
gabesmed committed Jul 8, 2016
1 parent fd54d4e commit 87e32f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,3 +4,4 @@ dist.js
dist/
node_modules
npm-debug.log
.DS_Store
2 changes: 2 additions & 0 deletions lib/Resource.js
Expand Up @@ -61,6 +61,8 @@ Resource.prototype._getDelta = function() {
});

return {
id: this._base.id,
type: this._base.type,
attributes: this._getRaw().attributes,
relationships: primaryRelations
};
Expand Down

0 comments on commit 87e32f7

Please sign in to comment.