forked from s_ranjbar/city_retrofit
30 lines
548 B
Python
30 lines
548 B
Python
"""
|
|
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
|
|
"""
|
|
|
|
|
|
class Location:
|
|
"""
|
|
Location
|
|
"""
|
|
def __init__(self, country, city):
|
|
self._country = country
|
|
self._city = city
|
|
|
|
@property
|
|
def city(self):
|
|
"""
|
|
City name
|
|
"""
|
|
return self._city
|
|
|
|
@property
|
|
def country(self):
|
|
"""
|
|
Country code
|
|
"""
|
|
return self._country
|