voipms-python/voipms/api/general/__init__.py
2019-08-17 22:34:44 -04:00

21 lines
501 B
Python

from voipms.api.general.balance import Balance
from voipms.api.general.ip import IP
class General():
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