-
Notifications
You must be signed in to change notification settings - Fork 1
/
place.py
executable file
·31 lines (29 loc) · 861 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
#!/usr/bin/python3
"""Holds class Place that inherits from BaseModel"""
from models.base_model import BaseModel
class Place(BaseModel):
"""Place that inherits from BaseModel
Attributes:
city_id: string - empty string
user_id: string - empty string
name: string - empty string
description: string - empty string
number_rooms: integer - 0
number_bathrooms: integer - 0
max_guest: integer - 0
price_by_night: integer - 0
latitude: float - 0.0
longitude: float - 0.0
amenity_ids: list of string
"""
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 = []