8000 [Issue-341] Update return value to match tag rather than class name. · BioComputing/twilio-python@d64a9bb · GitHub
[go: up one dir, main page]

Skip to content

Commit d64a9bb

Browse files
committed
[Issue-341] Update return value to match tag rather than class name.
1 parent e9ed60f commit d64a9bb

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

twilio/twiml/messaging_response.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class MessagingResponse(TwiML):
77
"""
88
def __init__(self):
99
"""
10-
Create a new <MessagingResponse>
10+
Create a new <Response>
1111
"""
1212
super(MessagingResponse, self).__init__()
1313
self.name = 'Response'
@@ -30,7 +30,7 @@ def message(self,
3030
:param action: action URL
3131
:param status_callback: callback URL
3232
:param kwargs: other attributes
33-
:return: <MessagingResponse> element
33+
:return: <Response> element
3434
"""
3535
return self.append(Message(
3636
body=body,
@@ -49,7 +49,7 @@ def redirect(self, url, method=None, **kwargs):
4949
:param url: URL to redirect to
5050
:param method: HTTP method
5151
:param kwargs: other attributes
52-
:return: <MessagingResponse> element
52+
:return: <Response> element
5353
"""
5454
return self.append(Redirect(
5555
method=method,

twilio/twiml/voice_response.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class VoiceResponse(TwiML):
1010
"""
1111
def __init__(self):
1212
"""
13-
Create a new <VoiceResponse>
13+
Create a new <Response>
1414
"""
1515
super(VoiceResponse, self).__init__()
1616
self.name = 'Response'
@@ -43,7 +43,7 @@ def dial(self,
4343
:param recording_status_callback: status callback URL
4444
:param recording_status_callback_method: status callback URL method
4545
:param kwargs: additional attributes
46-
:return: <VoiceResponse> element
46+
:return: <Response> element
4747
"""
4848
return self.append(Dial(
4949
number=number,
@@ -65,7 +65,7 @@ def echo(self,
6565
"""
6666
Add a new <Echo> element
6767
68-
:return: <VoiceResponse> element
68+
:return: <Response> element
6969
"""
7070
return self.append(Echo(
7171
**kwargs
@@ -89,7 +89,7 @@ def enqueue(self,
8989
:param wait_url_method: wait URL method
9090
:param workflow_sid: TaskRouter workflow SID
9191
:param kwargs: additional attributes
92-
:return: <VoiceResponse> element
92+
:return: <Response> element
9393
"""
9494
return self.append(Enqueue(
9595
name,
@@ -129,7 +129,7 @@ def gather(self,
129129
:param barge_in: stop playing media upon speech
130130
:param acknowledge_sound_url: url to hit when sound starts
131131
:param kwargs: additional attributes
132-
:return: <VoiceResponse> element
132+
:return: <Response> element
133133
"""
134134
return self.append(Gather(
135135
action=action,
@@ -144,15 +144,15 @@ def hangup(self):
144144
"""
145145
Add a new <Hangup> element
146146
147-
:return: <VoiceResponse> element
147+
:return: <Response> element
148148
"""
149149
return self.append(Hangup())
150150

151151
def leave(self):
152152
"""
153153
Add a new <Leave> element
154154
155-
:return: <VoiceResponse> element
155+
:return: <Response> element
156156
"""
157157
return self.append(Leave())
158158

@@ -161,7 +161,7 @@ def pause(self, length=None):
161161
Add a new <Pause> element
162162
163163
:param length: time in seconds to pause
164-
:return: <VoiceResponse> element
164+
:return: <Response> element
165165
"""
166166
return self.append(Pause(length=length))
167167

@@ -177,7 +177,7 @@ def play(self,
177177
:param loop: times to loop
178178
:param digits: play DTMF tones during a call
179179
:param kwargs: additional attributes
180-
:return: <VoiceResponse> element
180+
:return: <Response> element
181181
"""
182182
return self.append(Play(
183183
url,
@@ -214,7 +214,7 @@ def record(self,
214214
:param transcribe: transcribe the recording
215215
:param transcribe_callback: transcribe callback URL
216216
:param kwargs: additional attributes
217-
:return: <VoiceResponse> element
217+
:return: <Response> element
218218
"""
219219
return self.append(Record(
220220
action=action,
@@ -238,7 +238,7 @@ def redirect(self, url, method=None, **kwargs):
238238
:param url: redirect url
239239
:param method: redirect method
240240
:param kwargs: additional attributes
241-
:return: <VoiceResponse> element
241+
:return: <Response> element
242242
"""
243243
return self.append(Redirect(url, method=method, **kwargs))
244244

@@ -248,7 +248,7 @@ def reject(self, reason=None, **kwargs):
248248< A3E2 div class="diff-text-inner">
249249
:param reason: rejection reason
250250
:param kwargs: additional attributes
251-
:return: <VoiceResponse> element
251+
:return: <Response> element
252252
"""
253253
return self.append(Reject(reason=reason, **kwargs))
254254

@@ -266,7 +266,7 @@ def say(self,
266266
:param language: language of message
267267
:param voice: voice to use
268268
:param kwargs: additional attributes
269-
:return: <VoiceResponse> element
269+
:return: <Response> element
270270
"""
271271
return self.append(Say(
272272
body,
@@ -294,7 +294,7 @@ def sms(self,
294294
:param action: action URL
295295
:param status_callback: status callback URL
296296
:param kwargs: additional attributes
297-
:return: <VoiceResponse> element
297+
:return: <Response> element
298298
"""
299299
return self.append(Sms(
300300
body,

0 commit comments

Comments
 (0)
0