We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c7e4ae commit 7b4d58bCopy full SHA for 7b4d58b
app/coordinates.py
@@ -7,8 +7,8 @@ class Coordinates:
7
"""
8
9
def __init__(self, latitude, longitude):
10
- self.latitude = latitude
11
- self.longitude = longitude
+ self._latitude = latitude
+ self._longitude = longitude
12
13
def serialize(self):
14
@@ -17,7 +17,7 @@ def serialize(self):
17
:returns: The serialized coordinates.
18
:rtype: dict
19
20
- return {"latitude": self.latitude, "longitude": self.longitude}
+ return {"latitude": self._latitude, "longitude": self._longitude}
21
22
def __str__(self):
23
- return "lat: %s, long: %s" % (self.latitude, self.longitude)
+ return "lat: %s, long: %s" % (self._latitude, self._longitude)
0 commit comments