NAME
Mango::Attribute - A product attribute
SYNOPSIS
my $attributes = $product->attributes;
while (my $attribute = $attributes->next) {
print $attribute->name, $attribute->value;
};
DESCRIPTION
Mango::Attribute represents a name/value pair about a specific product.
METHODS
id
Returns id of the current attribute.
print $attribute->id;
created
Returns the date the attribute was created as a DateTime object.
print $attribute->created;
updated
Returns the date the attribute was last updated as a DateTime object.
print $attribute->updated;
name
Gets/sets the name of the user.
print $attribute->name;
value
Gets/sets the value of the attribute.
print $attribute->value;
destroy
Deletes the current item from the provider.
update
Saves any changes to the attribute back to the provider.
SEE ALSO
Mango::Object, Mango::Product, Mango::Provider::Products
AUTHOR
Christopher H. Laco
CPAN ID: CLACO
claco@chrislaco.com
http://today.icantfocus.com/blog/