Update call_center.ipynb

Add missing argument in constructors
pull/548/head
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", "\n",
"class Operator(Employee):\n", "class Operator(Employee):\n",
"\n", "\n",
" def __init__(self, employee_id, name):\n", " def __init__(self, employee_id, name, call_center):\n",
" super(Operator, self).__init__(employee_id, name, Rank.OPERATOR)\n", " super(Operator, self).__init__(employee_id, name, Rank.OPERATOR, call_center)\n",
"\n", "\n",
" def escalate_call(self):\n", " def escalate_call(self):\n",
" self.call.rank = Rank.SUPERVISOR\n", " self.call.rank = Rank.SUPERVISOR\n",
@ -116,8 +116,8 @@
"\n", "\n",
"class Supervisor(Employee):\n", "class Supervisor(Employee):\n",
"\n", "\n",
" def __init__(self, employee_id, name):\n", " def __init__(self, employee_id, name, call_center):\n",
" super(Operator, self).__init__(employee_id, name, Rank.SUPERVISOR)\n", " super(Operator, self).__init__(employee_id, name, Rank.SUPERVISOR, call_center)\n",
"\n", "\n",
" def escalate_call(self):\n", " def escalate_call(self):\n",
" self.call.rank = Rank.DIRECTOR\n", " self.call.rank = Rank.DIRECTOR\n",
@ -126,8 +126,8 @@
"\n", "\n",
"class Director(Employee):\n", "class Director(Employee):\n",
"\n", "\n",
" def __init__(self, employee_id, name):\n", " def __init__(self, employee_id, name, call_center):\n",
" super(Operator, self).__init__(employee_id, name, Rank.DIRECTOR)\n", " super(Operator, self).__init__(employee_id, name, Rank.DIRECTOR, call_center)\n",
"\n", "\n",
" def escalate_call(self):\n", " def escalate_call(self):\n",
" raise NotImplemented('Directors must be able to handle any call')\n", " raise NotImplemented('Directors must be able to handle any call')\n",