File Coverage

blib/lib/WWW/TMDB/API/Movie.pm
Criterion Covered Total %
statement 6 36 16.6
branch n/a
condition n/a
subroutine 2 12 16.6
pod 0 10 0.0
total 8 58 13.7


line stmt bran cond sub pod time code
1             package WWW::TMDB::API::Movie;
2              
3 1     1   7 use strict;
  1         2  
  1         37  
4 1     1   5 use warnings;
  1         2  
  1         712  
5             our $VERSION = '0.04';
6              
7             sub info {
8 0     0 0   my $self = shift;
9 0           my (%params) = @_;
10 0           $self->{api}->send_api( [ 'movie', $params{ID} ],
11             { ID => 1, language => 0 }, \%params );
12             }
13              
14             sub search {
15 0     0 0   my $self = shift;
16 0           my (%params) = @_;
17 0           $self->{api}->send_api( [ 'search', 'movies' ],
18             { query => 1, page => 0, language => 0, 'include_adult' => 0 },
19             \%params );
20             }
21              
22             sub alternative_titles {
23 0     0 0   my $self = shift;
24 0           my (%params) = @_;
25 0           $self->{api}->send_api( [ 'movie', $params{ID}, 'alternative_titles' ],
26             { ID => 1, country => 0 }, \%params );
27             }
28              
29             sub casts {
30 0     0 0   my $self = shift;
31 0           my (%params) = @_;
32 0           $self->{api}->send_api( [ 'movie', $params{ID}, 'casts' ], { ID => 1 },
33             \%params );
34             }
35              
36             sub images {
37 0     0 0   my $self = shift;
38 0           my (%params) = @_;
39 0           $self->{api}->send_api( [ 'movie', $params{ID}, 'images' ],
40             { ID => 1, language => 0 }, \%params );
41             }
42              
43             sub keywords {
44 0     0 0   my $self = shift;
45 0           my (%params) = @_;
46 0           $self->{api}->send_api( [ 'movie', $params{ID}, 'keywords' ],
47             { ID => 1 }, \%params );
48             }
49              
50             sub releases {
51 0     0 0   my $self = shift;
52 0           my (%params) = @_;
53 0           $self->{api}->send_api( [ 'movie', $params{ID}, 'releases' ],
54             { ID => 1 }, \%params );
55             }
56              
57             sub translations {
58 0     0 0   my $self = shift;
59 0           my (%params) = @_;
60 0           $self->{api}->send_api( [ 'movie', $params{ID}, 'translations' ],
61             { ID => 1 }, \%params );
62             }
63              
64             sub trailers {
65 0     0 0   my $self = shift;
66 0           my (%params) = @_;
67 0           $self->{api}->send_api( [ 'movie', $params{ID}, 'trailers' ],
68             { ID => 1, language => 1 }, \%params );
69             }
70              
71             sub latest {
72 0     0 0   my $self = shift;
73 0           my (%params) = @_;
74 0           $self->{api}->send_api( [ 'latest', 'movie' ] );
75             }
76              
77             1;
78