# Module: tasks/methods

Source:
  - tasks/methods.js, line 4

### Methods

#### (static) checkTask(_id, checked) → {number}

Sets checked status for a task

##### Parameters:

Name | Type | Description
--- | --- | ---
`_id` | string |
`checked` | boolean |

Source:
  - tasks/methods.js, line 55

##### Returns:

1 if successfull, otherwise 0

Type
  number

#### (static) getMyTasks() → {Mongo.Cursor}

Returns a current user's tasks

Source:
  - tasks/methods.js, line 26

##### Returns:

Type
  Mongo.Cursor

#### (static) insertTask(text) → {string}

Creates a new task document

##### Parameters:

Name | Type | Description
--- | --- | ---
`text` | string |

Source:
  - tasks/methods.js, line 39

##### Returns:

inserted document _id

Type
  string

#### (static) removeTask(_id) → {number}

Removes a task

##### Parameters:

Name | Type | Description
--- | --- | ---
`_id` | string |

Source:
  - tasks/methods.js, line 68

##### Returns:

1 if successfull, otherwise 0

Type
  number