| 1 | package Twilio::Jwt::Grants::VideoGrant; | ||
| 2 | |||
| 3 | 2 | ▶ | use 5.016; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | ▶ | use parent 'Twilio::Jwt::Grants::Grant'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 2 | our $VERSION = '2.001'; | |
| 9 | |||
| 10 | 11 | ▶ | sub get_grant_key { return 'video' } |
|
Subroutine
get_grant_key: called CC=1 SCAR=0.0
Pod
documented
| |||
| 11 | |||
| 12 | 12 | ▶ | sub payload_fields { return qw(room) } |
|
Subroutine
payload_fields: called CC=1 SCAR=0.0
Pod
documented
| |||
| 13 | |||
| 14 | 1 | ▶ | sub get_room { return $_[0]{room} } |
|
Subroutine
get_room: called CC=1 SCAR=0.0
Pod
documented
| |||
| 15 | |||
| 16 | 3 | ▶ | sub set_room { |
|
Subroutine
set_room: called CC=1 SCAR=0.0
Pod
documented
| |||
| 17 | 3 | my ($self, $room) = @_; | |
| 18 | 3 | $self->{room} = $room; | |
| 19 | 3 | return $self; | |
| 20 | } | ||
| 21 | |||
| 22 | 2 | 1; | |
| 23 | |||
| 24 | __END__ | ||