python-dependency-injector/examples/miniapps/api_client/models.py
2020-01-26 14:22:43 -05:00

15 lines
301 B
Python

"""TBD."""
class User(object):
"""User model."""
def __init__(self, id, api_client):
"""Initialize instance."""
self.id = id
self.api_client = api_client
def register(self):
"""Register user."""
self.api_client.call('register', {'id': self.id})