File Coverage

blib/lib/WWW/Marvel.pm
Criterion Covered Total %
statement 9 11 81.8
branch n/a
condition n/a
subroutine 3 5 60.0
pod 0 2 0.0
total 12 18 66.6


line stmt bran cond sub pod time code
1             package WWW::Marvel;
2 3     3   35529 use strict;
  3         6  
  3         127  
3 3     3   14 use warnings;
  3         3  
  3         108  
4 3     3   14 use base qw/ Class::Accessor /;
  3         10  
  3         1920  
5             __PACKAGE__->follow_best_practice;
6             __PACKAGE__->mk_accessors(qw/ public_key private_key /);
7              
8             our $VERSION = '0.02';
9              
10 0     0 0   sub get_endpoint { "http://gateway.marvel.com" }
11 0     0 0   sub get_api_version { "v1" }
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             1;