Foursquare/Updates.pm

filter: Statementstmt 31.8% 7 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 2 / 6 Podpod 0.0% 0 / 4 totaltotal 28.1% 9 / 32 CC 1 SCAR 5.1
CC
1
Cov
32%
new
2.0
info
2.0
notifications
2.0
CRAP 1.7
« Foursquare/Settings.pm ↑ Summary Foursquare/Photos.pm »
1 package WWW::Foursquare::Updates;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
7 0 my ($class, $request, $update_id) = @_;
8  
9 0 my $self = {};
10 0 bless $self, $class;
11 0 $self->{request} = $request;
12 0 $self->{update_id} = $update_id;
13  
14 0 return $self;
15 }
16  
17 0 ▶sub info {
Subroutine info: not called CC=1 SCAR=6.9
Pod undocumented
18 0 my ($self, %params) = @_;
19  
20 0 my $path = sprintf "updates/%s", $self->{update_id};
21 0 return $self->{request}->GET($path, \%params);
22 }
23  
24 # general
25 0 ▶sub notifications {
Subroutine notifications: not called CC=1 SCAR=6.9
Pod undocumented
26 0 my ($self, %params) = @_;
27
28 0 my $path = "updates/notifications";
29 0 return $self->{request}->GET($path, \%params);
30 }
31  
32 # ascpects
33 0 ▶sub marknotificationsread {
Subroutine marknotificationsread: not called CC=1 SCAR=6.9
Pod undocumented
34 0 my ($self, %params) = @_;
35  
36 0 my $path = "updates/marknotificationsread";
37 0 return $self->{request}->POST($path, \%params);
38 }
39  
40  
41 3 1;
« Foursquare/Settings.pm ↑ Summary Foursquare/Photos.pm »