Update call_center.ipynb

Add missing argument in constructors
This commit is contained in:
Abdelrahman Naser 2021-07-12 07:28:37 +02:00 committed by GitHub
parent cd116cc4ec
commit f0a6b08800
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -106,8 +106,8 @@
"\n",
"class Operator(Employee):\n",
"\n",
" def __init__(self, employee_id, name):\n",
" super(Operator, self).__init__(employee_id, name, Rank.OPERATOR)\n",
" def __init__(self, employee_id, name, call_center):\n",
" super(Operator, self).__init__(employee_id, name, Rank.OPERATOR, call_center)\n",
"\n",
" def escalate_call(self):\n",
" self.call.rank = Rank.SUPERVISOR\n",
@ -116,8 +116,8 @@
"\n",
"class Supervisor(Employee):\n",
"\n",
" def __init__(self, employee_id, name):\n",
" super(Operator, self).__init__(employee_id, name, Rank.SUPERVISOR)\n",
" def __init__(self, employee_id, name, call_center):\n",
" super(Operator, self).__init__(employee_id, name, Rank.SUPERVISOR, call_center)\n",
"\n",
" def escalate_call(self):\n",
" self.call.rank = Rank.DIRECTOR\n",
@ -126,8 +126,8 @@
"\n",
"class Director(Employee):\n",
"\n",
" def __init__(self, employee_id, name):\n",
" super(Operator, self).__init__(employee_id, name, Rank.DIRECTOR)\n",
" def __init__(self, employee_id, name, call_center):\n",
" super(Operator, self).__init__(employee_id, name, Rank.DIRECTOR, call_center)\n",
"\n",
" def escalate_call(self):\n",
" raise NotImplemented('Directors must be able to handle any call')\n",