| 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; | |