voipms-python/voipms/api/general/__init__.py

21 lines
501 B
Python
Raw Normal View History

2019-08-18 02:34:44 +00:00
from voipms.api.general.balance import Balance
from voipms.api.general.ip import IP
2019-08-18 02:02:44 +00:00
class General():
2019-08-18 02:34:44 +00:00
def __init__(self, base):
self._balance = None
self._ip = None
self.base = base
@property
def balance(self):
if self._balance is None:
self._balance = Balance(self.base)
return self._balance
@property
def ip(self):
if self._ip is None:
self._ip = IP(self.base)
return self._ip