The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::GNUDBSearch::Cd - Storage for Net::GNUDBSearch results.

SYNOPSIS

        use Net::GNUDBSearch::Cd;
        my $config = {
                'album' => 'Alway Outnumbered, Never Outgunned',
                'artist' => 'The Prodigy',
                'id' => '950cc10c',
                'genre' => 'misc'                       
        }
        my $searchCd = Net::GNUDBSearch::Cd->new($config);
        my $artist = $searchCd->getArtist();
        my $album = $searchCd->getAlbum();

DESCRIPTION

Class for storage of Net::GNUDBSearch results, normally not instantiated directly but can used to lookup a specific GNUDB entry.

For inherited methods see Net::GNUDB::Cd.

METHODS

new($config)

        my $config = {
                'album' => 'Alway Outnumbered, Never Outgunned',
                'artist' => 'The Prodigy',
                'id' => '950cc10c',
                'genre' => 'misc'                       
        }
        my $searchCd = Net::GNUDBSearch::Cd->new($config);

Constructor, returns a new instance of the search CD object. Requires all four of the above elements in the provided hash reference for operation. These elements must match a GNUDB entry.

getAlbum()

        my $albumName = $searchCd->getAlbum()

Returns the same album name string as given in the config on object creation.

getArtist()

        my $artistName = $searchCd->getArtist()

Returns the same artist name string as given in the config on object creation.

Author

MacGyveR <dumb@cpan.org>

Development questions, bug reports, and patches are welcome to the above address.

Copyright

Copyright (c) 2012 MacGyveR. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See Also

Net::GNUDBSearch::Cd