| 1 | package WWW::Connpass::Event::Waitlist; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 0 | ▶ | sub _method { die 'this is abstruct method' } | ||||||||
|
Subroutine
_method: not called CC=1 SCAR=6.9
| |||||||||||
| 6 | |||||||||||
| 7 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||
| 8 | 0 | my ($class, %args) = @_; | |||||||||
| 9 | 0 | ▶ | die "$class is abstract class" if $class eq __PACKAGE__; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 10 | |||||||||||
| 11 | # assertion | ||||||||||
| 12 | 0 | ▶ | if (exists $args{method}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | 0 | ▶ | $args{method} eq $class->_method | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | or die "Invalid method: $args{method}"; | ||||||||||
| 15 | } | ||||||||||
| 16 | else { | ||||||||||
| 17 | 0 | $args{method} = $class->_method; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 0 | return bless \%args => $class; | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | 0 | ▶ | sub inflate { | ||||||||
|
Subroutine
inflate: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 24 | 0 | my ($class, %args) = @_; | |||||||||
| 25 | 0 | $class .= '::'.ucfirst $args{method}; | |||||||||
| 26 | 0 | Module::Load::load($class); | |||||||||
| 27 | 0 | return $class->new(%args); | |||||||||
| 28 | } | ||||||||||
| 29 | |||||||||||
| 30 | 0 | ▶ | sub raw_data { +{%{$_[0]}} } | ||||||||
|
Subroutine
raw_data: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 31 | |||||||||||
| 32 | 0 | ▶ | sub is_new { not exists shift->{id} } | ||||||||
|
Subroutine
is_new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 33 | |||||||||||
| 34 | 0 | ▶ | sub cancelled_count { shift->{cancelled_count} } | ||||||||
|
Subroutine
cancelled_count: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 35 | 0 | ▶ | sub id { shift->{id} } | ||||||||
|
Subroutine
id: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 36 | 0 | ▶ | sub join_fee { shift->{join_fee} } | ||||||||
|
Subroutine
join_fee: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 37 | 0 | ▶ | sub lottery_count { shift->{lottery_count} } | ||||||||
|
Subroutine
lottery_count: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 38 | 0 | ▶ | sub max_participants { shift->{max_participants} } | ||||||||
|
Subroutine
max_participants: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 39 | 0 | ▶ | sub method { shift->{method} } | ||||||||
|
Subroutine
method: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 40 | 0 | ▶ | sub name { shift->{name} } | ||||||||
|
Subroutine
name: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 41 | 0 | ▶ | sub participants_count { shift->{participants_count} } | ||||||||
|
Subroutine
participants_count: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 42 | 0 | ▶ | sub place_fee { shift->{place_fee} } | ||||||||
|
Subroutine
place_fee: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 43 | 0 | ▶ | sub total_participants_count { shift->{total_participants_count} } | ||||||||
|
Subroutine
total_participants_count: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 44 | 0 | ▶ | sub waitlist_count { shift->{waitlist_count} } | ||||||||
|
Subroutine
waitlist_count: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 45 | |||||||||||
| 46 | 1 | 1; | |||||||||
| 47 | __END__ | ||||||||||