Officers¶
-
class
Neighbourhood.
Officer
(api, data={})¶ A police officer. Uses the neighbourhood-team API call.
Parameters: - api (PoliceAPI) – The instance of
PoliceAPI
to use. - data (dict) – 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
ofdict
, 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'}
- api (PoliceAPI) – The instance of