
Mango::Attribute - Module representing a product attribute

my $attributes = $product->attributes;
while (my $attribute = $attributes->next) {
print $attribute->name, ': ', $attribute->value;
};

Mango::Attribute represents an attribute (name/value pair) of an individual product.

Returns the date and time in UTC the attribute was created as a DateTime object.
print $attribute->created;
Deletes the current attribute from the product to which it is assigned.
$attribute->destroy;
Returns the id of the current attribute.
print $attribute->id;
Gets/sets the name of the current attribute.
print $attribute->name;
Saves any changes made to the attribute back to the provider.
$attribute->value('Red');
$attribute->update;
Whenever "update" is called, "updated" is automatically set to the current time in UTC.
Returns the date and time in UTC the attribute was last updated as a DateTime object.
print $attribute->updated;
Gets/sets the value of the current attribute.
print $attribute->value;

Mango::Object, Mango::Product, Mango::Provider::Products, DateTime

Christopher H. Laco
CPAN ID: CLACO
claco@chrislaco.com
http://today.icantfocus.com/blog/