parent
cd116cc4ec
commit
f0a6b08800
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue