bmw-js
Version:
BMW javascript REST client for the BMW i3 hackathon.
52 lines (38 loc) • 1.35 kB
JavaScript
// Generated by CoffeeScript 1.8.0
(function() {
var MojioModel, Product,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
MojioModel = require('./MojioModel');
module.exports = Product = (function(_super) {
__extends(Product, _super);
Product.prototype._schema = {
"Type": "String",
"AppId": "String",
"Name": "String",
"Description": "String",
"Shipping": "Boolean",
"Taxable": "Boolean",
"Price": "Float",
"Discontinued": "Boolean",
"OwnerId": "String",
"CreationDate": "String",
"_id": "String",
"_deleted": "Boolean"
};
Product.prototype._resource = 'Products';
Product.prototype._model = 'Product';
function Product(json) {
Product.__super__.constructor.call(this, json);
}
Product._resource = 'Products';
Product._model = 'Product';
Product.resource = function() {
return Product._resource;
};
Product.model = function() {
return Product._model;
};
return Product;
})(MojioModel);
}).call(this);