Constructor
new Assignment(client, response)
Instantiate an Assignment object.
Name | Type | Description |
---|---|---|
client |
Client | The client that is instantiating the object. |
response |
Object | The data for the object. |
- Source:
Members
(private) _client :Client
The client that instantiated this object.
- Client
- Source:
attachment_ids :Array.<Number>
An array of IDs for attachments attached to the assignment.
- Array.<Number>
- Source:
class_group_id :Number
The ID of the class group that the assignment was set for.
- Number
- Source:
class_group_name :String
The name of the class group that the assignment was set for.
- String
- Source:
class_year :String
The class year that the assignment was set for.
- String
- Source:
community_resource_item_id :Number
The ID of the assignment community resource.
- Number
- Source:
created_at :Number
The timestamp of when the assignment was created.
- Number
- Source:
description :String
The description of the assignment.
- String
- Source:
due_on :Number
The timestamp of when the assignment is due.
- Number
- Source:
duration :String
The duration of the assignment.
- String
- Source:
duration_units :String
The duration units of the assignment.
- String
- Source:
has_unread_comments :Boolean
Whether or not the assignment has unread comments.
- Boolean
- Source:
id :Number
The ID of the assignment.
- Number
- Source:
issued_on :Number
The timestamp of when the assignment was issued.
- Number
- Source:
published_at :Number
The timestamp of when the assignment was published.
- Number
- Source:
purpose :String
The purpose of the assignment.
- String
- Source:
school_id :Number
The ID of the school that the assignment is set for.
- Number
- Source:
school_logo_url :String
The logo URL of of the school that the assignment is set for.
- String
- Source:
school_name :String
The name of the school that the assignment is set for.
- String
- Source:
subject :String
The subject of the assignment.
- String
- Source:
submission_ids :Array.<Number>
An array of IDs for submissions
- Array.<Number>
- Source:
submission_method_id :Number
The ID of the submission method to use.
- Number
- Source:
submission_status :String
The status of the submission for the client user.
- String
- Source:
teacher_id :Number
The ID of the teacher who set the assignment.
- Number
- Source:
teacher_name :String
The name of the teacher who set the assignment.
- String
- Source:
title :String
The title of the assignment.
- String
- Source:
type :String
The assignment type.
- String
- Source:
updated_at :Number
The timestamp of when the assignment was last updated.
- Number
- Source:
web_links :Array.<WebLink>
An array of links to web resources for the assigment.
- Array.<WebLink>
- Source:
Methods
getAttachments(idsopt) → {Promise.<Array.<Attachment>>}
Get attachments attached to the assignment.
Name | Type | Attributes | Description |
---|---|---|---|
ids |
Array.<Number> |
<optional> |
The IDs of the attachments to retrieve. |
- Source:
- Type
- Promise.<Array.<Attachment>>
getTeacher() → {Promise.<Employee>}
Get the teacher who set the assignment.
- Source:
- Type
- Promise.<Employee>