-
Notifications
You must be signed in to change notification settings - Fork 0
/
place.py
executable file
·38 lines (32 loc) · 914 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
34
35
36
37
38
#!/usr/bin/python3
"""
Place class
"""
from models.base_model import BaseModel
class Place(BaseModel):
"""
A Place
Attributes:
city_id (str): City id
user_id (str): User id
name (str): Name of the place
description (str): Description of the place
number_rooms (int): Number of rooms in the place
number_bathrooms (int): Number of bathrooms in the place
max_guests (int): Maximum number of guests in the place
price_by_night (int): Price by night of the place
latitude (float): Latitude of the place
longitude (float): Longitude of the place
amenity_ids (list): List of Amenities ids
"""
city_id = ""
user_id = ""
name = ""
description = ""
number_rooms = 0
number_bathrooms = 0
max_guests = 0
price_by_night = 0
latitude = 0.0
longitude = 0.0
amenity_ids = []