Home Reference Source Repository
public class | source

Job

Extends:

backbone~Backbone.ModelBaseModel → Job

Job.

Method Summary

Public Methods
public

Override of Backbone.Model.defaults.

public

initialize(options: object)

Initializes the model.

public

parse(response: object): object

Override of Backbone.Model.parse.

Inherited Summary

From class BaseModel
public

destroy(options: object)

Override of destroy to allow for generic handling.

public

fetch(options: object)

Override of fetch to allow for generic handling.

public

Returns descriptive string for model.

public

Parses ID out of resource type URL.

public

save(attributes: object, options: object): *

Override of save to allow for generic handling.

public

url(): string

URL override to add trailing slash.

Public Methods

public defaults(): object source

Override of Backbone.Model.defaults. Sets 'input_port_types' and 'output_port_types' to null.

Return:

object

default properties

TODO:

  • is this needed?

public initialize(options: object) source

Initializes the model. Upon initialization the 'input_port_types' and 'output_port_types' will be set as Backbone.Collections.

Params:

NameTypeAttributeDescription
options object

Backbone.Model options object; 'options.input_port_types' and 'options.output_port_types' may be given

public parse(response: object): object source

Override of Backbone.Model.parse. The 'input_port_types' and 'output_port_types' will be set as Backbone.Collections.

Params:

NameTypeAttributeDescription
response object

JSON response from server

Return:

object

response object