Constructor
new Employee(client, response)
Instantiate an Employee object.
Parameters:
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.
Type:
- Client
- Source:
employee_type :String
The type of employee.
Type:
- String
- Source:
forename :String
The forename of the employee.
Type:
- String
- Source:
id :Number
The ID of the employee.
Type:
- Number
- Source:
school_id :Number
The ID of the school that the employee works for.
Type:
- Number
- Source:
surname :String
The surname of the employee.
Type:
- String
- Source:
title :String
The title of the employee.
Type:
- String
- Source:
Methods
getSchool() → {Promise.<School>}
Get the school that the employee works for.
- Source:
Returns:
- Type
- Promise.<School>
getUser() → {Promise.<User>}
Get the user object of the employee.
- Source:
Returns:
- Type
- Promise.<User>