File Coverage

blib/lib/WWW/Connpass/Event/Participants.pm
Criterion Covered Total %
statement 9 17 52.9
branch n/a
condition n/a
subroutine 3 6 50.0
pod 0 3 0.0
total 12 26 46.1


line stmt bran cond sub pod time code
1             package WWW::Connpass::Event::Participants;
2 1     1   5 use strict;
  1         2  
  1         22  
3 1     1   5 use warnings;
  1         1  
  1         19  
4              
5 1     1   387 use WWW::Connpass::Event::Participant;
  1         2  
  1         94  
6              
7             sub new {
8 0     0 0   my $class = shift;
9 0           bless {@_} => $class;
10             }
11              
12             sub label {
13 0     0 0   my ($self, $key) = @_;
14 0           return $self->{label}->{$key};
15             }
16              
17             sub all {
18 0     0 0   my $self = shift;
19 0           return map { WWW::Connpass::Event::Participant->new(%$_) } @{ $self->{rows} };
  0            
  0            
20             }
21              
22             1;
23             __END__