| 1 | package Net::AmazonS3::Simple::Object; | ||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 2 | use Class::Tiny qw(etag content_encoding content_length content_type last_modified), | |||||||||
| 6 | 2 | ▶ | { validate => 1, }; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | =head1 NAME | ||||||||||
| 9 | |||||||||||
| 10 | Net::AmazonS3::Simple::Object - base class of Object | ||||||||||
| 11 | |||||||||||
| 12 | =head1 DESCRIPTION | ||||||||||
| 13 | |||||||||||
| 14 | base object of Object | ||||||||||
| 15 | |||||||||||
| 16 | =head1 METHODS | ||||||||||
| 17 | |||||||||||
| 18 | =head2 new(%attributes) | ||||||||||
| 19 | |||||||||||
| 20 | =head3 %attributes | ||||||||||
| 21 | |||||||||||
| 22 | =head4 etag | ||||||||||
| 23 | |||||||||||
| 24 | =head4 content_encoding | ||||||||||
| 25 | |||||||||||
| 26 | =head4 content_length | ||||||||||
| 27 | |||||||||||
| 28 | =head4 content_type | ||||||||||
| 29 | |||||||||||
| 30 | =head4 last_modified | ||||||||||
| 31 | |||||||||||
| 32 | =head4 validate | ||||||||||
| 33 | |||||||||||
| 34 | =cut | ||||||||||
| 35 | |||||||||||
| 36 | sub BUILD { | ||||||||||
| 37 | 4 | ▶ | my ($self) = @_; | ||||||||
|
Subroutine
BUILD: called CC=3 SCAR=11.2
Pod
undocumented
| |||||||||||
| 38 | |||||||||||
| 39 | 4 | foreach my $req (qw/etag/) { | |||||||||
| 40 | 4 | ▶ | die "$req attribute required" unless defined $self->$req; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 41 | } | ||||||||||
| 42 | } | ||||||||||
| 43 | |||||||||||
| 44 | =head1 LICENSE | ||||||||||
| 45 | |||||||||||
| 46 | Copyright (C) Avast Software. | ||||||||||
| 47 | |||||||||||
| 48 | This library is free software; you can redistribute it and/or modify | ||||||||||
| 49 | it under the same terms as Perl itself. | ||||||||||
| 50 | |||||||||||
| 51 | =head1 AUTHOR | ||||||||||
| 52 | |||||||||||
| 53 | Jan Seidl E<lt>seidl@avast.comE<gt> | ||||||||||
| 54 | |||||||||||
| 55 | =cut | ||||||||||
| 56 | |||||||||||
| 57 | 2 | 1; | |||||||||