NAME

Object::eBay::Attribute - Represents an item attribute

SYNOPSIS

# assuming that $item is an Object::eBay::Item object
my $attribute = $item->attributes->find(10244);
print "The condition is $attribute\n";  # "The condition is New"
if ( $attribute == 24227 ) {
    print "This is a Sega Genesis game\n";
}

DESCRIPTION

eBay associates key-value pairs (attributes) with certain auctions. An Object::eBay::Attribute object represents a specific attribute of an auction.

METHODS

get_attribute_id

Returns an ID number for the type of this attribute.

get_value_id

Returns an ID number for the value of this attribute. This method is called when the attribute object is used in numeric context.

get_value_literal

Returns a string for the value of this attribute. This method is called when the attribute object is used in string context.

AUTHOR

Michael Hendricks <michael@ndrix.org>

LICENSE AND COPYRIGHT

Copyright (c) 2008 Michael Hendricks (<michael@ndrix.org>). All rights reserved.

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