bmw-js
Version:
BMW javascript REST client for the BMW i3 hackathon.
30 lines (21 loc) • 633 B
text/coffeescript
MojioModel = require('./MojioModel')
module.exports = class Location extends MojioModel
# instance variables
_schema: {
"Lat": "Float",
"Lng": "Float",
"FromLockedGPS": "Boolean",
"Dilution": "Float",
"IsValid": "Boolean"
}
_resource: 'Locations'
_model: 'Location'
constructor: (json) ->
super(json)
# class variables and functions
@_resource: 'Locations'
@_model: 'Location'
@resource: () ->
return Location._resource
@model: () ->
return Location._model