« Twilio/AuthStrategy/NoAuthStrategy.pm
↑ Summary
Twilio/CredentialProvider/NoAuthCredentialProvider.pm »
| 1 | package Twilio::CredentialProvider::CredentialProvider; | ||
| 2 | |||
| 3 | 3 | ▶ | use 5.016; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | ▶ | use Carp qw(croak); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 3 | our $VERSION = '2.001'; | |
| 9 | |||
| 10 | 47 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 11 | 47 | my ($class, $auth_type) = @_; | |
| 12 | 47 | return bless { auth_type => $auth_type }, $class; | |
| 13 | } | ||
| 14 | |||
| 15 | 3 | ▶ | sub get_auth_type { return $_[0]{auth_type} } |
|
Subroutine
get_auth_type: called CC=1 SCAR=0.0
Pod
documented
| |||
| 16 | |||
| 17 | 1 | ▶ | sub to_auth_strategy { |
|
Subroutine
to_auth_strategy: called CC=1 SCAR=0.0
Pod
documented
| |||
| 18 | 1 | my ($self) = @_; | |
| 19 | 1 | croak ref($self) . ' must implement to_auth_strategy'; | |
| 20 | } | ||
| 21 | |||
| 22 | 3 | 1; | |
| 23 | |||
| 24 | __END__ | ||