forked from urbanriskmap/cognicity-reports-floodgauge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
22 lines (19 loc) · 815 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
'use strict';
/**
* @file Cognicity reports data module which retrieves data from the BPBD floodgauge API (Siaga Levels)
* @copyright (c) Tomas Holderness & SMART Infrastructure Facility November 2015
* @license Released under GNU GPLv3 License (see LICENSE.txt).
* @example
* Must be run as a subfolder of cognicity-reports, and
* cognicity-reports must be configured to use this datasource.
*/
var FloodgaugeDataSource = require('./FloodgaugeDataSource');
var config = require('./floodgauge-config');
/**
* The constructor function we expose takes a reports object and returns an instance of this
* data source, with configuration already injected.
*/
var constructor = function( reports ) {
return new FloodgaugeDataSource( reports, config );
};
module.exports = constructor;