Senior Officers

class Force.SeniorOfficer(api, data={})

A senior police officer. Uses the senior-officers API call.

Parameters:
  • api (PoliceAPI) – The instance of PoliceAPI to use.
  • data (dict) – The attributes that will be copied to this instance.
force
Type:Force

The police force that this officer works for.

name
Type:str

The officer’s name.

rank
Type:str

The officer’s rank.

bio
Type:str

The officer’s biography.

contact_details
Type:list

A list of dict, containing methods of contacting the officer.

>>> officer = force.senior_officers[0]
>>> pprint(officer.contact_details)
{u'twitter': u'http://www.twitter.com/CCLeicsPolice'}