Employee

Employee

Represents an employee for a school on SMHW.


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.

Members

(private) _client :Client

The client that instantiated this object.

Type:
  • Client

employee_type :String

The type of employee.

Type:
  • String

forename :String

The forename of the employee.

Type:
  • String

id :Number

The ID of the employee.

Type:
  • Number

school_id :Number

The ID of the school that the employee works for.

Type:
  • Number

surname :String

The surname of the employee.

Type:
  • String

title :String

The title of the employee.

Type:
  • String

Methods

getSchool() → {Promise.<School>}

Get the school that the employee works for.

Returns:
Type
Promise.<School>

getUser() → {Promise.<User>}

Get the user object of the employee.

Returns:
Type
Promise.<User>