forked from s_ranjbar/city_retrofit
39 lines
729 B
Python
39 lines
729 B
Python
"""
|
|
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
|
|
"""
|
|
|
|
|
|
class Location:
|
|
"""
|
|
Location
|
|
"""
|
|
def __init__(self, country, city, region_code):
|
|
self._country = country
|
|
self._city = city
|
|
self._region_code = region_code
|
|
|
|
@property
|
|
def city(self):
|
|
"""
|
|
Get city name
|
|
"""
|
|
return self._city
|
|
|
|
@property
|
|
def country(self):
|
|
"""
|
|
Get country code
|
|
"""
|
|
return self._country
|
|
|
|
@property
|
|
def region_code(self):
|
|
"""
|
|
Get region
|
|
"""
|
|
return self._region_code
|