Michael Schilli > Net-Amazon-0.35 > Net::Amazon::Attribute::ReviewSet

Download:
Net-Amazon-0.35.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  5
Open  2
View/Report Bugs
Source   Latest Release: Net-Amazon-0.62

NAME ^

Net::Amazon::Attribute::ReviewSet - A set of customer reviews

SYNOPSIS ^

    use Net::Amazon::Attribute::ReviewSet;
    my $rev = Net::Amazon::Attribute::Review->new(
        average_customer_rating => $avg,
        total_reviews  => $total,
        );

DESCRIPTION ^

Net::Amazon::Attribute::ReviewSet holds a list of customer reviews, each of type Net::Amazon::Attribute::Review.

METHODS

$self->reviews()

Returns a list of Net::Amazon::Attribute::Review objects.

$self->average_customer_rating()

Accessor for the average customer rating, a numeric value.

$self->total_reviews()

Accessor for the total number of reviews. Please note that this might not be equal to the number of reviews held in the list, since there might be less customer reviews than total reviews (reviews can also be non-customer-reviews, but they're not available by the web service as of Aug 2003).

$self->add_review($rev)

Add a Net::Amazon::Attribute::Review object to the list. (Used internally only).

SEE ALSO ^

AUTHOR ^

Mike Schilli, <m@perlmeister.com>

COPYRIGHT AND LICENSE ^

Copyright 2003 by Mike Schilli <m@perlmeister.com>

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

syntax highlighting: