Model/epc_data/Property.py
2023-06-07 15:57:22 +01:00

15 lines
349 B
Python

class Property:
def __init__(self, postcode, address1, data=None):
self.postcode = postcode
self.address1 = address1
self.data = data
def search_address_epc(self):
"""
This method searches for an address in the EPC database and returns the first result
:return: property data
"""