team_participant¶
-
class
eldonationtracker.team_participant.
TeamParticipant
(json)¶ Bases:
eldonationtracker.donor.Donor
Participant Attributes.
Inherits from the donor class, but over-rides the json_to_attributes function.
API variables:
- Parameters
self.name – participant’s name or Anonymous
self.amount – the sum of all donations by this participant
self.number_of_donations – number of all donations by this participant
self.image_url – the url of the participant’s avatar image (not used)
-
json_to_attributes
(json)¶ Convert JSON to Team Participant attributes.
- Parameters
json – JSON attributes from API