Marvel.pm

filter: Statementstmt 86.6% 13 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 72.7% 16 / 22 CC 1 SCAR 3.4
CC
1
Cov
87%
get_endpoint
2.0
get_api_version
2.0
BEGIN
1.0
CRAP 1.4
↑ Summary Marvel/Client.pm »
1 package WWW::Marvel;
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use base qw/ Class::Accessor /;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 __PACKAGE__->follow_best_practice;
6 3 __PACKAGE__->mk_accessors(qw/ public_key private_key /);
7  
8 3 our $VERSION = '0.02';
9  
10 0 ▶sub get_endpoint { "http://gateway.marvel.com" }
Subroutine get_endpoint: not called CC=1 SCAR=6.9
Pod undocumented
11 0 ▶sub get_api_version { "v1" }
Subroutine get_api_version: not called CC=1 SCAR=6.9
Pod undocumented
12  
13 =head1 NAME
14  
15 WWW::Marvel - A Marvel Comics API
16  
17  
18 =head1 VERSION
19  
20 Version 0.01
21  
22  
23 =head1 SYNOPSIS
24  
25 use WWW::Marvel;
26  
27 my $api = WWW::Marvel->new({ public_key => 1234, private_key => 'abcd' });
28  
29 ###
30  
31 use WWW::Marvel::Client;
32  
33 my $client = WWW::Marvel::Client->new({ public_key => 1234, private_key => 'abcd' });
34 $client->set_timestamp(1431297266);
35 $client->hash();
36  
37  
38 =head1 DESCRIPTION
39  
40 This module is an interface to Marvel Comics API
41 to "create awesome stuff with the world's greatest comic api".
42  
43 For more information:
44 http://developer.marvel.com/
45  
46 Remember to keep you private key private and not store it publicly.
47  
48 Right now this is a work in progress.
49  
50  
51 =head1 USAGE
52  
53 If you wanna query the Marvel Comics API, probably you have to use
54 the WWW::Marvel::Client module.
55  
56  
57  
58 =head1 BUGS
59  
60  
61  
62 =head1 SUPPORT
63  
64  
65  
66 =head1 AUTHOR
67  
68 Simone "SIMOTRONE" Tampieri
69  
70 =head1 COPYRIGHT
71  
72 This program is free software; you can redistribute
73 it and/or modify it under the same terms as Perl itself.
74  
75 The full text of the license can be found in the
76 LICENSE file included with this module.
77  
78  
79 =head1 SEE ALSO
80  
81 perl(1).
82  
83 =cut
84  
85 3 1;
↑ Summary Marvel/Client.pm »