lib/Net/Async/Spotify/Object/General.pm

filter: Statementstmt 78.2% 18 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 50.0% 1 / 2 totaltotal 75.0% 24 / 32 CC 1 SCAR 2.5
CC
1
Cov
78%
new
2.0
data
2.0
BEGIN
1.0
CRAP 1.3
« lib/Net/Async/Spotify/API/Search.pm ↑ Summary lib/Net/Async/Spotify/API/Browse.pm »
1 package Net::Async::Spotify::Object::General;
2  
3 31 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 31 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 31 our $VERSION = '0.002'; # VERSION
7 31 our $AUTHORITY = 'cpan:VNEALV'; # AUTHORITY
8  
9 31 ▶use Future::AsyncAwait;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 31 ▶use Log::Any qw($log);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 31 ▶use Syntax::Keyword::Try;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 =head1 NAME
14  
15 Net::Async::Spotify::Object::General - Default representation of unmapped Spotify API Response Objects
16  
17 =head1 DESCRIPTION
18  
19 Default representation of unmapped Objects. where L</data> will contain a hash of the returned response.
20 Without specifying field names.
21  
22 =head1 METHODS
23  
24 =cut
25  
26 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
27 0 my ( $class, %data ) = @_;
28  
29 0 my $self = bless {}, $class;
30 0 $self->{data} = \%data;
31 0 return $self;
32  
33 }
34  
35 =head2 data
36  
37 Contains all the decoded hash response, without any of the fields defined as methods.
38 More like full raw content of Spotify API response.
39  
40 =cut
41  
42 0 ▶sub data { shift->{data} }
Subroutine data: not called CC=1 SCAR=6.9
Pod documented
43  
44 31 1;
« lib/Net/Async/Spotify/API/Search.pm ↑ Summary lib/Net/Async/Spotify/API/Browse.pm »