aboutsummaryrefslogtreecommitdiff
path: root/src/ppm/provider.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ppm/provider.py')
-rw-r--r--src/ppm/provider.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/ppm/provider.py b/src/ppm/provider.py
index 484270b..fbbd911 100644
--- a/src/ppm/provider.py
+++ b/src/ppm/provider.py
@@ -24,15 +24,20 @@ class ProviderError(Exception):
class Provider(object):
- """Keeps the information on howto top up the ballance and how to query the
- current ballance"""
+ """
+ Keeps the information on howto interact with a certain provider, that
+ his howto top up the ballance and how to query the current ballance
+
+ It doesn't keep any current balance information or similar since this is
+ associated with an account (a user can have several SIM cards form the same
+ provider)
+ """
def __init__(self, country, name):
self.country = country
self.name = name
self.fetch_balance_cmds = {}
self.top_up_cmds = {}
- self.balance = None
logging.debug("New provider: %s, %s", country, name)
def add_fetch_balance_cmd(self, cmd):