mirror of
				https://github.com/donnemartin/system-design-primer.git
				synced 2025-11-04 02:02:31 +03:00 
			
		
		
		
	Update call_center.py
Add missing argument to constructors
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							50a04c0a14
						
					
				
				
					commit
					cd116cc4ec
				
			@@ -42,8 +42,8 @@ class Employee(metaclass=ABCMeta):
 | 
			
		||||
 | 
			
		||||
class Operator(Employee):
 | 
			
		||||
 | 
			
		||||
    def __init__(self, employee_id, name):
 | 
			
		||||
        super(Operator, self).__init__(employee_id, name, Rank.OPERATOR)
 | 
			
		||||
    def __init__(self, employee_id, name, call_center):
 | 
			
		||||
        super(Operator, self).__init__(employee_id, name, Rank.OPERATOR, call_center)
 | 
			
		||||
 | 
			
		||||
    def escalate_call(self):
 | 
			
		||||
        self.call.rank = Rank.SUPERVISOR
 | 
			
		||||
@@ -52,8 +52,8 @@ class Operator(Employee):
 | 
			
		||||
 | 
			
		||||
class Supervisor(Employee):
 | 
			
		||||
 | 
			
		||||
    def __init__(self, employee_id, name):
 | 
			
		||||
        super(Operator, self).__init__(employee_id, name, Rank.SUPERVISOR)
 | 
			
		||||
    def __init__(self, employee_id, name, call_center):
 | 
			
		||||
        super(Operator, self).__init__(employee_id, name, Rank.SUPERVISOR, call_center)
 | 
			
		||||
 | 
			
		||||
    def escalate_call(self):
 | 
			
		||||
        self.call.rank = Rank.DIRECTOR
 | 
			
		||||
@@ -62,8 +62,8 @@ class Supervisor(Employee):
 | 
			
		||||
 | 
			
		||||
class Director(Employee):
 | 
			
		||||
 | 
			
		||||
    def __init__(self, employee_id, name):
 | 
			
		||||
        super(Operator, self).__init__(employee_id, name, Rank.DIRECTOR)
 | 
			
		||||
    def __init__(self, employee_id, name, call_center):
 | 
			
		||||
        super(Operator, self).__init__(employee_id, name, Rank.DIRECTOR, call_center)
 | 
			
		||||
 | 
			
		||||
    def escalate_call(self):
 | 
			
		||||
        raise NotImplementedError('Directors must be able to handle any call')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user