mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-11-04 18:07:44 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			303 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			303 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""Models module."""
 | 
						|
 | 
						|
 | 
						|
class User:
 | 
						|
    """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})
 |