8000 Add docstrings. · twilio/twilio-python@2064949 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2064949

Browse files
author
Sarah Stringer
committed
Add docstrings.
1 parent cef162c commit 2064949

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

twilio/jwt/access_token/grants.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,19 @@ def to_payload(self):
200200

201201
class PlaybackGrant(AccessTokenGrant):
202202
"""Grant to access Twilio Live stream"""
203+
203204
def __init__(self, grant=None):
205+
"""Initialize a PlaybackGrant with a grant retrieved from the Twilio API."""
206+
204207
self.grant = grant
205208

206209
@property
207210
def key(self):
211+
"""Return the grant's key."""
212+
208213
return "player"
209214

210215
def to_payload(self):
216+
"""Return the grant."""
217+
211218
return self.grant

0 commit comments

Comments
 (0)
0