Protected_Protected_Protected_Initialize and perform setup for the class
Averages an array of numbers
an array of numbers to average
the average of the elements in the array
Create a new Field and TeamField entry in the database
The field details
The ID of the team to associate the field with
the created field
Generate a random string of characters to be used as a unique id
the result of the call to the uuid function
Create a new team
The team to create
the created team
Delete the Field object from the database (does not delete runs)
the deleted field
Delete a team
The ID of the team to delete
the deleted team
Load all fields from the database
The ID of the team to filter by
the list of fields
Remove a field image from the S3 bucket
The URL of the image to remove
the response from the S3 bucket
Update a Field object in the database
The updated field details
the updated field
Update a team
The team to update
the updated team
Validate the field details
The field details to validate
The function to call if there is an error
true if the field details are valid, false otherwise
Validate the team input
The team to validate
true if the team is valid, false otherwise
Class constructor. Calls _init() on the superclass. Add parameters as needed