system_assignation/helpers/location.py

31 lines
574 B
Python
Raw Normal View History

2021-08-26 13:27:43 -04:00
"""
Location module
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2022 Concordia CERC group
Project Coder Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
Code contributors: Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
2021-08-26 13:27:43 -04:00
"""
class Location:
2021-08-26 13:27:43 -04:00
"""
Location
"""
def __init__(self, country, city):
self._country = country
self._city = city
@property
def city(self):
2021-08-26 13:27:43 -04:00
"""
City name
"""
return self._city
@property
def country(self):
2021-08-26 13:27:43 -04:00
"""
Country code
"""
return self._country