Net::GNUDB::Cd - Base class for Net::GNUDBSearch results.
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();
Base class for Net::GNUDBSearch results, normally not instantiated directly but can used to lookup a specific GNUDB entry.
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.
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.
my $id = $cd->getId()
Returns the same ID string as given in the config on object creation.
my $genre = $cd->getGenre()
Returns the same genre string as given in the config on object creation.
MacGyveR <dumb@cpan.org>
Development questions, bug reports, and patches are welcome to the above address.
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.
Net::GNUDBSearch
To install Net::GNUDBSearch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::GNUDBSearch
CPAN shell
perl -MCPAN -e shell install Net::GNUDBSearch
For more information on module installation, please visit the detailed CPAN module installation guide.