SimpleDB::Class::Role::Itemized - Provides utility methods to classes that need to instantiate items.
version 1.0503
my $class = $self->determine_item_class(\%attributes); my $item = $self->instantiate_item(\%attributes, $id); my $item = $self->parse_item($id, \@attributes);
This is a Moose::Role that provides utility methods for instantiating SimpleDB::Class::Items.
The following methods are available from this role.
Instantiates an item based upon it's proper classname and then calls update to populate it's attributes with data.
update
A hash reference of attribute data.
An optional id to instantiate the item with.
Given an attribute list we can determine if an item needs to be recast as a different class.
A hash ref of attributes.
Converts the attributes section of an item document returned from SimpleDB into a SimpleDB::Class::Item object.
The ItemName of the item to create.
An array of attributes as returned by SimpleDB::Client.
SimpleDB::Class is Copyright 2009-2010 Plain Black Corporation (http://www.plainblack.com/) and is licensed under the same terms as Perl itself.
To install SimpleDB::Class, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SimpleDB::Class
CPAN shell
perl -MCPAN -e shell install SimpleDB::Class
For more information on module installation, please visit the detailed CPAN module installation guide.