| 1 | package Net::Amazon::S3::ACL::Grantee::User; | ||||||||||||||||||||||||||||
| 2 | # ABSTRACT: Represents user reference for ACL | ||||||||||||||||||||||||||||
| 3 | 100 | $Net::Amazon::S3::ACL::Grantee::User::VERSION = '0.992'; | |||||||||||||||||||||||||||
| 4 | 100 | ▶ | use Moose; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | 100 | extends 'Net::Amazon::S3::ACL::Grantee'; | |||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||
| 8 | 100 | has id => ( | |||||||||||||||||||||||||||
| 9 | is => 'ro', | ||||||||||||||||||||||||||||
| 10 | isa => 'Str', | ||||||||||||||||||||||||||||
| 11 | required => 1, | ||||||||||||||||||||||||||||
| 12 | ); | ||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | 46 | ▶ | around BUILDARGS => sub { | ||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=3 SCAR=12.5
| |||||||||||||||||||||||||||||
| 15 | 46 | my ($orig, $class) = (shift, shift); | |||||||||||||||||||||||||||
| 16 | 46 | ▶ | unshift @_, 'id' if @_ == 1 && ! ref $_[0]; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
@_ == 1 and not ref $_[0]
MC/DC0%0/2
@_ == 1 and not ref $_[0]
@_ == 1
not ref $_[0]
Truth table33%1/3
A and not(B)
A= @_ == 1B= not ref $_[0]
| |||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||
| 18 | 46 | return $class->$orig (@_); | |||||||||||||||||||||||||||
| 19 | 100 | }; | |||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||
| 21 | 91 | ▶ | sub format_for_header { | ||||||||||||||||||||||||||
|
Subroutine
format_for_header: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 22 | 91 | my ($self) = @_; | |||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||
| 24 | 91 | return "id=\"${\ $self->id }\""; | |||||||||||||||||||||||||||
| 25 | } | ||||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||
| 27 | 100 | 1; | |||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||
| 29 | __END__ | ||||||||||||||||||||||||||||