Created
September 20, 2012 17:21
-
-
Save krusty/3757179 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Catalog.Model = Backbone.Model.extend({ | |
url: function () { | |
return '/v1/catalogs/' + this.get('catalog_id'); | |
}, | |
parse: function (response) {return response.catalog}, | |
isPhoneBook: function () { | |
return _.any(this.get('tags'), function (tag) { | |
return tag.name === "Phone Book"; | |
}); | |
}, | |
isAssisted: function () { | |
return this.get('notification_method')['facilitated?']; | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment