File Coverage

blib/lib/WWW/Connpass/Place.pm
Criterion Covered Total %
statement 6 21 28.5
branch n/a
condition n/a
subroutine 2 13 15.3
pod 0 11 0.0
total 8 45 17.7


line stmt bran cond sub pod time code
1             package WWW::Connpass::Place;
2 1     1   3 use strict;
  1         1  
  1         19  
3 1     1   3 use warnings;
  1         1  
  1         171  
4              
5             sub new {
6 0     0 0   my $class = shift;
7 0           bless {@_} => $class;
8             }
9              
10 0     0 0   sub raw_data { +{%{ shift->{place} }} }
  0            
11              
12             sub edit {
13 0     0 0   my $self = shift;
14 0           return $self->{session}->update_place($self, @_);
15             }
16              
17 0     0 0   sub id { shift->{place}->{id} }
18 0     0 0   sub name { shift->{place}->{name} }
19 0     0 0   sub url { shift->{place}->{url} }
20 0     0 0   sub address { shift->{place}->{address} }
21 0     0 0   sub lat { shift->{place}->{lat} }
22 0     0 0   sub lng { shift->{place}->{lng} }
23 0     0 0   sub map_image { shift->{place}->{map_image} }
24              
25             sub refetch {
26 0     0 0   my $self = shift;
27 0           return $self->{session}->refetch_place($self);
28             }
29              
30             1;
31             __END__