The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::GNUDB::Cd - Base class for Net::GNUDBSearch results.

SYNOPSIS

        use Net::GNUDB::Cd;
        my $config = {
                'id' => '950cc10c',
                'genre' => 'misc'                       
        }
        my $cd = Net::GNUDB::Cd->new($config);
        my $id = $cd->getId();
        my $genre = $cd->getGenre();
        my $tracks = $cd->getTracks();

DESCRIPTION

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

METHODS

new($config)

        my $config = {
                'id' => '950cc10c',
                'genre' => 'misc'                       
        }
        my $cd = Net::GNUDB::Cd->new($config);

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

getTracks()

        my $tracks = $cd->getTracks()

Returns an array reference of track names for the CD found from the details in the config given at object creation.

This method actually performs the lookup to the GNUDB database.

getId()

        my $id = $cd->getId()

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

getGenre()

        my $genre = $cd->getGenre()

Returns the same genre 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