This repository has been archived on 2026-10-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
kennels-server/models/animal.py
T
2022-01-20 10:11:40 -06:00

14 lines
506 B
Python

class Animal():
# Class initializer. It has 5 custom parameters, with the
# special `self` parameter that every method on a class
# needs as the first parameter.
def __init__(self, id, name, breed, status, location_id, customer_id):
self.id = id
self.name = name
self.breed = breed
self.status = status
self.location_id = location_id
self.customer_id = customer_id
# new_animal = Animal(1, "Snickers", "Dog", "Recreation", 1, 4)