Annict.pm

filter: Statementstmt 100% 29 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod 0.0% 0 / 1 totaltotal 97.4% 38 / 39 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Annict/Works.pm ↑ Summary
1 package WebService::Annict;
2 2 ▶use 5.008001;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use LWP::UserAgent;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use HTTP::Headers;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 ▶use WebService::Annict::Works;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 ▶use WebService::Annict::Episodes;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 ▶use WebService::Annict::Records;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 2 our $VERSION = "0.02";
14  
15 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
16 1 my ($class, %args) = @_;
17 1 my $access_token = $args{access_token};
18 1 my $ua = LWP::UserAgent->new(
19 agent => "Perl5 WebService::Annict/$VERSION",
20 default_headers => HTTP::Headers->new(
21 "Content-Type" => "application/json",
22 Accept => "application/json",
23 Authorization => "Bearer $access_token",
24 ),
25 );
26  
27 1 bless {
28 works => WebService::Annict::Works->new($ua),
29 }, $class;
30 }
31  
32  
33  
34 2 1;
35 __END__
« Annict/Works.pm ↑ Summary