Skip to content

Commit 465b601

Browse files
Refactor for terminal verb
1 parent 1d808d4 commit 465b601

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

bandwidth/model/bxml/terminal_verb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ def add_verb(self, verb: Verb):
3232
verb (Verb): BXML verb
3333
3434
Raises:
35-
AttributeError: This method is not allowed for <SipUri>
35+
AttributeError: This method is not allowed for this verb
3636
"""
3737
raise AttributeError('Adding verbs is not supported by this verb')

bandwidth/model/bxml/verbs/hangup.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
66
@copyright Bandwidth INC
77
"""
8-
from ..verb import Verb
8+
from ..terminal_verb import TerminalVerb
99

1010

11-
class Hangup(Verb):
11+
class Hangup(TerminalVerb):
1212

1313
def __init__(self):
1414
"""Initialize a <Hangup> verb
@@ -17,14 +17,3 @@ def __init__(self):
1717
None
1818
"""
1919
super().__init__(tag="Hangup", content=None, attributes=None, nested_verbs=None)
20-
21-
def add_verb(self, verb: Verb):
22-
"""Adding verbs is not allowed for <Hangup>
23-
24-
Args:
25-
verb (Verb): BXML verb
26-
27-
Raises:
28-
AttributeError: This method is not allowed for <Hangup>
29-
"""
30-
raise AttributeError('Adding verbs is not supported by <Hangup>')

0 commit comments

Comments
 (0)