2021-08-26 13:27:43 -04:00
|
|
|
"""
|
|
|
|
Location module
|
|
|
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|
|
|
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
|
|
|
Contributors Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
2021-04-13 14:12:45 -04:00
|
|
|
class Location:
|
2021-08-26 13:27:43 -04:00
|
|
|
"""
|
|
|
|
Location
|
|
|
|
"""
|
2021-04-13 14:12:45 -04:00
|
|
|
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
|
|
|
|
"""
|
2021-04-13 14:12:45 -04:00
|
|
|
return self._city
|
|
|
|
|
|
|
|
@property
|
|
|
|
def country(self):
|
2021-08-26 13:27:43 -04:00
|
|
|
"""
|
|
|
|
Country code
|
|
|
|
"""
|
|
|
|
return self._country
|