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

filter: Statementstmt 83.3% 15 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 83.3% 20 / 24 CC 1 SCAR 1.8
CC
1
Cov
83%
to_human
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« lib/Net/Async/Spotify/API/Tracks.pm ↑ Summary lib/Net/Async/Spotify/Object/Track.pm »
1 package Net::Async::Spotify::Object::CurrentlyPlayingContext;
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 mro;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 31 ▶use parent qw(Net::Async::Spotify::Object::Generated::CurrentlyPlayingContext);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 =encoding utf8
13  
14 =head1 NAME
15  
16 Net::Async::Spotify::Object::CurrentlyPlayingContext - Package representing Main Spotify CurrentlyPlayingContext Object
17  
18 =head1 DESCRIPTION
19  
20 Main module for an Autogenerated one L<Net::Async::Spotify::Object::Generated::CurrentlyPlayingContext>.
21 Will hold all extra functionality for Spotify CurrentlyPlayingContext Object
22  
23 =head1 METHODS
24  
25 =cut
26  
27 0 ▶sub to_human {
Subroutine to_human: not called CC=1 SCAR=6.9
Pod documented
28 0 my $self = shift;
29 return join(' | ',
30 $self->currently_playing_type,
31 $self->item->id,
32 $self->item->name,
33 0 join(' & ', map {$_->name} $self->item->artists->@*),
34 $self->item->album->name,
35 $self->device->name . '( ' . $self->device->volume_percent .'% )'
36 );
37 }
38  
39 31 1;
« lib/Net/Async/Spotify/API/Tracks.pm ↑ Summary lib/Net/Async/Spotify/Object/Track.pm »