File Coverage

blib/lib/GenOO/TranscriptCollection.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 15 16 93.7


line stmt bran cond sub pod time code
1             # POD documentation - main docs before the code
2              
3             =head1 NAME
4              
5             GenOO::TranscriptCollection - Role for a collection of GenOO::Transcript objects
6              
7             =head1 SYNOPSIS
8              
9             # This role defines the interface for collections of L<GenOO::Transcript> objects
10             # Cannot be initialized
11              
12             =head1 DESCRIPTION
13              
14             This role defines the interface for collections of L<GenOO::Transcript> objects.
15             All required attributes and subs must be present in classes that consume
16             this role.
17              
18             =cut
19              
20             # Let the code begin...
21              
22             package GenOO::TranscriptCollection;
23             $GenOO::TranscriptCollection::VERSION = '1.5.1';
24 1     1   5991 use Moose::Role;
  1         5  
  1         20  
25 1     1   5257 use namespace::autoclean;
  1         2  
  1         16  
26 1     1   91 use GenOO::TranscriptCollection::Factory;
  1         2  
  1         113  
27              
28             #######################################################################
29             ######################## Class Methods ########################
30             #######################################################################
31             sub create_from {
32 1     1 0 1994 my ($class, @attributes) = @_;
33 1         24 return GenOO::TranscriptCollection::Factory->create(@attributes)->read_collection;
34             }
35             1;