package Object::eBay::User; our $VERSION = '0.3.2'; use Class::Std; { use warnings; use strict; use base qw( Object::eBay ); sub api_call { "GetUser" }; sub response_field { "User" }; __PACKAGE__->simple_attributes(qw{ FeedbackScore }); __PACKAGE__->complex_attributes({ FeedbackPrivate => { class => 'Boolean', } }); # name the boolean method with is_ to be consistent sub is_feedback_private { shift->feedback_private } } 1; __END__ =head1 NAME Object::eBay::User - Represents an eBay user =head1 SYNOPSIS # Assuming that Object::eBay has been initialized use Object::eBay::User; my $user = Object::eBay::User->new({ user_id => 'example' }); print "Feedback Score: ", $user->feedback_score(), "\n"; =head1 DESCRIPTION Represents an eBay user. =head1 METHODS =head2 new Requires a single hashref as the argument. The hashref should contain a key 'user_id' whose value is the ID of the user you want the new object to represent. =head2 feedback_score Returns an integere indicating the user's feedback score. =head2 is_feedback_private Returns an L object representing 'true' if the user's feedback score is private. Returns 'false' if the user's feedback score is public. =head1 DIAGNOSTICS None =head1 CONFIGURATION AND ENVIRONMENT Object::eBay::User requires no configuration files or environment variables. =head1 DEPENDENCIES =over 4 =item * Class::Std =item * Object::eBay =back =head1 INCOMPATIBILITIES None known. =head1 BUGS AND LIMITATIONS Please report any bugs or feature requests to C, or through the web interface at L. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. =head1 SUPPORT You can find documentation for this module with the perldoc command. perldoc Object::eBay You can also look for information at: =over 4 =item * AnnoCPAN: Annotated CPAN documentation L =item * CPAN Ratings L =item * RT: CPAN's request tracker L =item * Search CPAN L =back =head1 ACKNOWLEDGEMENTS =head1 AUTHOR Michael Hendricks =head1 LICENSE AND COPYRIGHT Copyright (c) 2006 Michael Hendricks (). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.