mirror of
https://github.com/aljazceru/squatm3gator.git
synced 2025-12-17 06:34:23 +01:00
14 lines
283 B
Python
14 lines
283 B
Python
# -*- coding: utf-8 -*-
|
|
import simplejson
|
|
class Domain:
|
|
def __init__(self):
|
|
self.fqdn = ""
|
|
self.purchasable = ""
|
|
self.price = ""
|
|
self.no_info = False
|
|
|
|
def _asdict(self):
|
|
return self.__dict__
|
|
|
|
def toJSON(self):
|
|
return simplejson.dumps(self.__dict__, ensure_ascii=False) |