Twilio/Jwt/Grants/SyncGrant.pm

filter: Statementstmt 100% 28 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 13 / 13 Podpod 100% 10 / 10 totaltotal 100% 51 / 51 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Twilio/Jwt/Grants/ChatGrant.pm ↑ Summary Twilio/Jwt/Grants/TaskRouterGrant.pm »
1 package Twilio::Jwt::Grants::SyncGrant;
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 'data_sync' }
Subroutine get_grant_key: called CC=1 SCAR=0.0
Pod documented
11  
12 3 ▶sub payload_fields { return qw(service_sid endpoint_id deployment_role_sid push_credential_sid) }
Subroutine payload_fields: called CC=1 SCAR=0.0
Pod documented
13  
14 1 ▶sub get_service_sid { return $_[0]{service_sid} }
Subroutine get_service_sid: called CC=1 SCAR=0.0
Pod documented
15 1 ▶sub get_endpoint_id { return $_[0]{endpoint_id} }
Subroutine get_endpoint_id: called CC=1 SCAR=0.0
Pod documented
16 1 ▶sub get_deployment_role_sid { return $_[0]{deployment_role_sid} }
Subroutine get_deployment_role_sid: called CC=1 SCAR=0.0
Pod documented
17 1 ▶sub get_push_credential_sid { return $_[0]{push_credential_sid} }
Subroutine get_push_credential_sid: called CC=1 SCAR=0.0
Pod documented
18  
19 2 ▶sub set_service_sid {
Subroutine set_service_sid: called CC=1 SCAR=0.0
Pod documented
20 2 my ($self, $sid) = @_;
21 2 $self->{service_sid} = $sid;
22 2 return $self;
23 }
24  
25 2 ▶sub set_endpoint_id {
Subroutine set_endpoint_id: called CC=1 SCAR=0.0
Pod documented
26 2 my ($self, $endpoint_id) = @_;
27 2 $self->{endpoint_id} = $endpoint_id;
28 2 return $self;
29 }
30  
31 2 ▶sub set_deployment_role_sid {
Subroutine set_deployment_role_sid: called CC=1 SCAR=0.0
Pod documented
32 2 my ($self, $sid) = @_;
33 2 $self->{deployment_role_sid} = $sid;
34 2 return $self;
35 }
36  
37 2 ▶sub set_push_credential_sid {
Subroutine set_push_credential_sid: called CC=1 SCAR=0.0
Pod documented
38 2 my ($self, $sid) = @_;
39 2 $self->{push_credential_sid} = $sid;
40 2 return $self;
41 }
42  
43 2 1;
44  
45 __END__
« Twilio/Jwt/Grants/ChatGrant.pm ↑ Summary Twilio/Jwt/Grants/TaskRouterGrant.pm »