File Coverage

blib/lib/WWW/Connpass/Event/Participant.pm
Criterion Covered Total %
statement 6 18 33.3
branch n/a
condition n/a
subroutine 2 12 16.6
pod 0 10 0.0
total 8 40 20.0


line stmt bran cond sub pod time code
1             package WWW::Connpass::Event::Participant;
2 1     1   17 use strict;
  1         2  
  1         22  
3 1     1   4 use warnings;
  1         1  
  1         187  
4              
5             sub new {
6 0     0 0   my $class = shift;
7 0           bless {@_} => $class;
8             }
9              
10             sub answer {
11 0     0 0   my ($self, $index) = @_;
12 0           return $self->{"answer_$index"};
13             }
14              
15 0     0 0   sub waitlist_name { shift->{waitlist_name} }
16 0     0 0   sub username { shift->{username} }
17 0     0 0   sub nickname { shift->{nickname} }
18 0     0 0   sub comment { shift->{comment} }
19 0     0 0   sub registration { shift->{registration} }
20 0     0 0   sub attendance { shift->{attendance} }
21 0     0 0   sub updated_at { shift->{updated_at} }
22 0     0 0   sub receipt_id { shift->{receipt_id} }
23              
24             1;
25             __END__