| 1 | package Net::Google::DataAPI::Types; | ||||||||||
| 2 | 17 | ▶ | use Any::Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 17 | ▶ | use Any::Moose '::Util::TypeConstraints'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 17 | ▶ | use Net::Google::DataAPI::Auth::AuthSub; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 17 | ▶ | use Net::Google::AuthSub; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 17 | ▶ | use Net::OAuth2::AccessToken; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 17 | ▶ | use URI; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 17 | our $VERSION = '0.02'; | |||||||||
| 10 | |||||||||||
| 11 | 17 | role_type 'Net::Google::DataAPI::Types::Auth' | |||||||||
| 12 | => {role => 'Net::Google::DataAPI::Role::Auth'}; | ||||||||||
| 13 | |||||||||||
| 14 | 17 | subtype 'Net::Google::DataAPI::Types::AuthSub' | |||||||||
| 15 | => as 'Net::Google::AuthSub'; | ||||||||||
| 16 | |||||||||||
| 17 | coerce 'Net::Google::DataAPI::Types::Auth' | ||||||||||
| 18 | => from 'Net::Google::DataAPI::Types::AuthSub' | ||||||||||
| 19 | => via { | ||||||||||
| 20 | 1 | ▶ | Net::Google::DataAPI::Auth::AuthSub->new( | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 21 | authsub => $_ | ||||||||||
| 22 | ); | ||||||||||
| 23 | 17 | }; | |||||||||
| 24 | |||||||||||
| 25 | 17 | subtype 'Net::Google::DataAPI::Types::URI' | |||||||||
| 26 | => as 'URI'; | ||||||||||
| 27 | |||||||||||
| 28 | coerce 'Net::Google::DataAPI::Types::URI' | ||||||||||
| 29 | => from 'Str' | ||||||||||
| 30 | 4 | ▶ | => via { URI->new(( m{://} ) ? $_ : ('http://'.$_)) }; | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
| |||||||||||
| 31 | |||||||||||
| 32 | 17 | subtype 'Net::Google::DataAPI::Types::OAuth2::AccessToken' | |||||||||
| 33 | => as 'Net::OAuth2::AccessToken'; | ||||||||||
| 34 | |||||||||||
| 35 | coerce 'Net::Google::DataAPI::Types::OAuth2::AccessToken' | ||||||||||
| 36 | => from 'HashRef' | ||||||||||
| 37 | 0 | ▶ | => via { Net::OAuth2::AccessToken->new(%$_) }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 38 | |||||||||||
| 39 | 17 | __PACKAGE__->meta->make_immutable; | |||||||||
| 40 | |||||||||||
| 41 | 17 | ▶ | no Any::Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 42 | 17 | ▶ | no Any::Moose '::Util::TypeConstraints'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 43 | |||||||||||
| 44 | 17 | 1; | |||||||||