Skip to content

Latest commit

 

History

History
51 lines (29 loc) · 1.18 KB

File metadata and controls

51 lines (29 loc) · 1.18 KB

Officers

police_api.neighbourhoods

A police officer. Uses the neighbourhood-team API call.

param PoliceAPI api

The instance of PoliceAPI to use.

param dict data

The attributes that will be copied to this instance.

neighbourhood

type

Neighbourhood

The Neighbourhood Policing Team that this officer has responsibility 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 = neighbourhood.officers[0] >>> pprint(officer.contact_details) {u'telephone': u'01788 853851', u'website': u'http://www.safer-neighbourhoods.co.uk/your-neighbourhood/rugby-district/rugby-rural-south/email-the-team'}