Home Reference Source Test Repository
public class | source

Job

Base Job class

Constructor Summary

Public Constructor
public

Constructor

Member Summary

Public Members
public

Callback

public

Job id

public

Instance of node-schedule Job

public

Data for Job

public

pattern

public

Object of serialized Hubot user

Method Summary

Public Methods
public

cancel()

Cancel Job

public

exec(robot: Object)

Execute Job

public

Get envelope for robot

public

Get Hubot room id

public

Serialize Job data

public

start(robot: Object)

Start Job

Public Constructors

public constructor(param: Object) source

Constructor

Params:

NameTypeAttributeDescription
param Object

param

param.id number

Job id

param.pattern string

pattern string

param.user Object

Hubot user

param.meta Object

Data for Job

param.cb Function
  • optional

callback

Public Members

public cb: Function source

Callback

public id: number source

Job id

public job: Object | null source

Instance of node-schedule Job

public meta: Object source

Data for Job

public pattern: string source

pattern

public user: Object source

Object of serialized Hubot user

Public Methods

public cancel() source

Cancel Job

public exec(robot: Object) source

Execute Job

Params:

NameTypeAttributeDescription
robot Object

Hubot robot

public getEnvelope(): Object source

Get envelope for robot

Return:

Object

public getRoom(): string source

Get Hubot room id

Return:

string

public serialize(): Object source

Serialize Job data

Return:

Object

public start(robot: Object) source

Start Job

Params:

NameTypeAttributeDescription
robot Object

Hubot robot