aboutsummaryrefslogtreecommitdiff
path: root/lib/Agency.js
blob: c22a141364bce80c3fbc74a0b49496e26eb2953a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
var _util = require('./util');

module.exports.Agency = function(options) {
    this._id = options.id;
    this._name = options.name;
    this._address = options.address;
    this._city = options.city;
    this._state = options.state;
    this._latitude = options.latitude;
    this._longitude = options.longitude;
    this._devices = options.devices;
    this._uri = options.uri || _util.API_BASE + '/agency/' + options.id;
};

module.exports.Agency.prototype.getId = function() {
    return this._id;
};

module.exports.Agency.prototype.getName = function() {
    return this._name;
};

module.exports.Agency.prototype.getAddress = function() {
    return this._address;
};

module.exports.Agency.prototype.getCity = function() {
    return this._city;
};

module.exports.Agency.prototype.getState = function() {
    return this._state;
};

module.exports.Agency.prototype.getLatitude = function() {
    return this._latitude;
};

module.exports.Agency.prototype.getLongitude = function() {
    return this._longitude;
};

module.exports.Agency.prototype.getDevices = function() {
    return this._devices;
};