Skip to content

Instantly share code, notes, and snippets.

@rhumlover
Created March 6, 2013 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhumlover/5098298 to your computer and use it in GitHub Desktop.
Save rhumlover/5098298 to your computer and use it in GitHub Desktop.
(function() {
window.streamApp.factory('Video', function() {
var Video;
Video = (function() {
function Video(attrs) {
var key, value;
for (key in attrs) {
value = attrs[key];
if (key === 'created_time') {
value *= 1000;
}
this[key] = value;
}
}
return Video;
})();
return Video;
});
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment