blib/lib/TMDB.pm

filter: Statementstmt 75.9% 41 / 54 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 59.0% 13 / 22 Podpod 0.0% 0 / 9 totaltotal 63.5% 54 / 85 SCAR 0.1
CC
1
Cov
76%
new
2.0
collection
2.0
company
2.0
CRAP 1.0
« Build ↑ Summary
1 package TMDB;
2  
3 #######################
4 # LOAD MODULES
5 #######################
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Carp qw(croak carp);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 #######################
11 # VERSION
12 #######################
13 1 our $VERSION = '1.2.1';
14  
15 #######################
16 # LOAD CPAN MODULES
17 #######################
18 1 ▶use Object::Tiny qw(session);
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 #######################
21 # LOAD DIST MODULES
22 #######################
23 1 ▶use TMDB::Genre;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 1 ▶use TMDB::Movie;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 1 ▶use TMDB::TV;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 1 ▶use TMDB::Config;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 1 ▶use TMDB::Person;
Subroutine BEGIN: called CC=1 SCAR=0.0
28 1 ▶use TMDB::Search;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 1 ▶use TMDB::Company;
Subroutine BEGIN: called CC=1 SCAR=0.0
30 1 ▶use TMDB::Session;
Subroutine BEGIN: called CC=1 SCAR=0.0
31 1 ▶use TMDB::Collection;
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 #######################
34 # PUBLIC METHODS
35 #######################
36  
37 ## ====================
38 ## CONSTRUCTOR
39 ## ====================
40 sub new {
41 0 ▶ my ( $class, @args ) = @_;
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
42 0 my $self = {};
43 0 bless $self, $class;
44  
45 # Init Session
46 0 $self->{session} = TMDB::Session->new(@args);
47 0 return $self;
48 } ## end sub new
49  
50 ## ====================
51 ## TMDB OBJECTS
52 ## ====================
53 sub collection {
54 0 ▶ return TMDB::Collection->new(
Subroutine collection: not called CC=1 SCAR=6.9
Pod undocumented
55 session => shift->session,
56 @_
57 );
58 } ## end sub collection
59 0 ▶sub company { return TMDB::Company->new( session => shift->session, @_ ); }
Subroutine company: not called CC=1 SCAR=6.9
Pod undocumented
60 0 ▶sub config { return TMDB::Config->new( session => shift->session, @_ ); }
Subroutine config: not called CC=1 SCAR=6.9
Pod undocumented
61 0 ▶sub genre { return TMDB::Genre->new( session => shift->session, @_ ); }
Subroutine genre: not called CC=1 SCAR=6.9
Pod undocumented
62 0 ▶sub movie { return TMDB::Movie->new( session => shift->session, @_ ); }
Subroutine movie: not called CC=1 SCAR=6.9
Pod undocumented
63 0 ▶sub tv { return TMDB::TV->new( session => shift->session, @_ ); }
Subroutine tv: not called CC=1 SCAR=6.9
Pod undocumented
64 0 ▶sub person { return TMDB::Person->new( session => shift->session, @_ ); }
Subroutine person: not called CC=1 SCAR=6.9
Pod undocumented
65 0 ▶sub search { return TMDB::Search->new( session => shift->session, @_ ); }
Subroutine search: not called CC=1 SCAR=6.9
Pod undocumented
66  
67 #######################
68 1 1;
69  
70 __END__
« Build ↑ Summary