Constructor
new ReportBot(map, reduce, location, crontab)
- Source:
TODO redo description
Parameters:
Name | Type | Description |
---|---|---|
map |
function | The CouchDB map function to run. |
reduce |
function | The CouchDB reduce funtion to run, if there is one. |
location |
String | The location where the functions are run, valid values are "local" and "server". |
crontab |
String | When the Bot is to run, in cron format. If undefined, runs immediately. |
Extends
- User.Model
Methods
schedule()
- Source:
Schedule the bot to run the given MapReduce functions at the
given location on the given crontab schedule.