File Coverage

blib/lib/WebService/Kramerius/API4/Feed.pm
Criterion Covered Total %
statement 9 18 50.0
branch n/a
condition n/a
subroutine 3 6 50.0
pod 3 3 100.0
total 15 27 55.5


line stmt bran cond sub pod time code
1             package WebService::Kramerius::API4::Feed;
2              
3 2     2   238963 use strict;
  2         4  
  2         70  
4 2     2   7 use warnings;
  2         2  
  2         121  
5              
6 2     2   10 use base qw(WebService::Kramerius::API4::Base);
  2         3  
  2         882  
7              
8             our $VERSION = 0.02;
9              
10             sub custom {
11 0     0 1   my ($self, $opts_hr) = @_;
12              
13 0           $self->_validate_opts($opts_hr, ['policy', 'type']);
14              
15 0           return $self->_get_data($self->{'library_url'}.'search/api/v5.0/feed/custom'.
16             $self->_construct_opts($opts_hr));
17             }
18              
19             sub mostdesirable {
20 0     0 1   my ($self, $opts_hr) = @_;
21              
22 0           $self->_validate_opts($opts_hr, ['limit', 'offset', 'type']);
23              
24 0           return $self->_get_data($self->{'library_url'}.'search/api/v5.0/feed/mostdesirable'.
25             $self->_construct_opts($opts_hr));
26             }
27              
28             sub newest {
29 0     0 1   my ($self, $opts_hr) = @_;
30              
31 0           $self->_validate_opts($opts_hr, ['limit', 'offset', 'type']);
32              
33 0           return $self->_get_data($self->{'library_url'}.'search/api/v5.0/feed/newest'.
34             $self->_construct_opts($opts_hr));
35             }
36              
37             1;
38              
39             __END__