File Coverage

blib/lib/Net/Amazon/S3/ACL/Grantee/Email.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod 0 1 0.0
total 8 9 88.8


line stmt bran cond sub pod time code
1             # ABSTRACT: Represents user reference by email address for ACL
2             $Net::Amazon::S3::ACL::Grantee::Email::VERSION = '0.991';
3             use Moose;
4 100     100   631  
  100         207  
  100         577  
5             extends 'Net::Amazon::S3::ACL::Grantee';
6              
7             has address => (
8             is => 'ro',
9             isa => 'Str',
10             required => 1,
11             );
12              
13             around BUILDARGS => sub {
14             my ($orig, $class) = (shift, shift);
15             unshift @_, 'address' if @_ == 1 && ! ref $_[0];
16              
17             return $class->$orig (@_);
18             };
19              
20             my ($self) = @_;
21              
22 1     1 0 2 return "emailAddress=\"${\ $self->address }\"";
23             }
24 1         1  
  1         24  
25             1;
26              
27              
28             =pod
29              
30             =encoding UTF-8
31              
32             =head1 NAME
33              
34             Net::Amazon::S3::ACL::Grantee::Email - Represents user reference by email address for ACL
35              
36             =head1 VERSION
37              
38             version 0.991
39              
40             =head1 SYNOPSIS
41              
42             use Net::Amazon::S3::ACL::Grantee::Email;
43              
44             my $email = Net::Amazon::S3::ACL::Grantee::Email->new ('foo@bar.com');
45             my $email = Net::Amazon::S3::ACL::Grantee::Email->new (address => 'foo@bar.com');
46              
47             =head1 AUTHOR
48              
49             Branislav Zahradník <barney@cpan.org>
50              
51             =head1 COPYRIGHT AND LICENSE
52              
53             This module is part of L<Net::Amazon::S3>.
54              
55             =head1 AUTHOR
56              
57             Branislav Zahradník <barney@cpan.org>
58              
59             =head1 COPYRIGHT AND LICENSE
60              
61             This software is copyright (c) 2022 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav Zahradník.
62              
63             This is free software; you can redistribute it and/or modify it under
64             the same terms as the Perl 5 programming language system itself.
65              
66             =cut