NAME
MetaCPAN::API::CPANRatings - CPAN Ratings information for MetaCPAN::API
VERSION
version 0.02
DESCRIPTION
This role provides MetaCPAN::API with several methods to get the CPAN Ratings information.
ATTRIBUTES
cpanratings_prefix
This attribute helps set the path to the CPAN ratings requests in the REST API. You will most likely never have to touch this as long as you have an updated version of MetaCPAN::API.
Default: cpanratings.
This attribute is read-only (immutable), meaning that once it's set on initialize (via new()
), you cannot change it. If you need to, create a new instance of MetaCPAN::API. Why is it immutable? Because it's better.
METHODS
search_cpanratings_exact
my $result = $mcpan->search_cpanratings_exact('Moose');
Search for a CPAN Ratings entry about a specific distribution.
search_cpanratings_like
my $result = $mcpan->search_cpanratings_like('Moose');
Search for a CPAN Ratings entry with anything that has the string you gave in it. Searching for "Moose" is equivalent to anything that has Moose in it.
AUTHOR
Sawyer X <xsawyerx@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Sawyer X.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.