Twilio/Jwt/Grants/TaskRouterGrant.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 11 / 11 Podpod 100% 8 / 8 totaltotal 100% 43 / 43 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Twilio/Jwt/Grants/SyncGrant.pm ↑ Summary Twilio/Jwt/Grants/VideoGrant.pm »
1 package Twilio::Jwt::Grants::TaskRouterGrant;
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 2 ▶sub get_grant_key { return 'task_router' }
Subroutine get_grant_key: called CC=1 SCAR=0.0
Pod documented
11  
12 3 ▶sub payload_fields { return qw(workspace_sid worker_sid role) }
Subroutine payload_fields: called CC=1 SCAR=0.0
Pod documented
13  
14 1 ▶sub get_workspace_sid { return $_[0]{workspace_sid} }
Subroutine get_workspace_sid: called CC=1 SCAR=0.0
Pod documented
15 1 ▶sub get_worker_sid { return $_[0]{worker_sid} }
Subroutine get_worker_sid: called CC=1 SCAR=0.0
Pod documented
16 1 ▶sub get_role { return $_[0]{role} }
Subroutine get_role: called CC=1 SCAR=0.0
Pod documented
17  
18 2 ▶sub set_workspace_sid {
Subroutine set_workspace_sid: called CC=1 SCAR=0.0
Pod documented
19 2 my ($self, $sid) = @_;
20 2 $self->{workspace_sid} = $sid;
21 2 return $self;
22 }
23  
24 2 ▶sub set_worker_sid {
Subroutine set_worker_sid: called CC=1 SCAR=0.0
Pod documented
25 2 my ($self, $sid) = @_;
26 2 $self->{worker_sid} = $sid;
27 2 return $self;
28 }
29  
30 2 ▶sub set_role {
Subroutine set_role: called CC=1 SCAR=0.0
Pod documented
31 2 my ($self, $role) = @_;
32 2 $self->{role} = $role;
33 2 return $self;
34 }
35  
36 2 1;
37  
38 __END__
« Twilio/Jwt/Grants/SyncGrant.pm ↑ Summary Twilio/Jwt/Grants/VideoGrant.pm »