-
Notifications
You must be signed in to change notification settings - Fork 8
/
place.py
executable file
·33 lines (29 loc) · 978 Bytes
/
place.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/python3
"""Defines the Place class."""
from models.base_model import BaseModel
class Place(BaseModel):
"""Represent a place.
Attributes:
city_id (str): The City id.
user_id (str): The User id.
name (str): The name of the place.
description (str): The description of the place.
number_rooms (int): The number of rooms of the place.
number_bathrooms (int): The number of bathrooms of the place.
max_guest (int): The maximum number of guests of the place.
price_by_night (int): The price by night of the place.
latitude (float): The latitude of the place.
longitude (float): The longitude of the place.
amenity_ids (list): A list of Amenity ids.
"""
city_id = ""
user_id = ""
name = ""
description = ""
number_rooms = 0
number_bathrooms = 0
max_guest = 0
price_by_night = 0
latitude = 0.0
longitude = 0.0
amenity_ids = []