mirror of
https://github.com/donnemartin/system-design-primer.git
synced 2025-12-14 17:08:56 +03:00
Update call_center.ipynb
Add missing argument in constructors
This commit is contained in:
committed by
GitHub
parent
cd116cc4ec
commit
f0a6b08800
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user