NAME
Box::Calc::Item - The container class for the items you wish to pack.
VERSION
version 1.0200
SYNOPSIS
my $item = Box::Calc::Item->new(name => 'Apple', x => 3, y => 3.3, z => 4, weight => 5);
METHODS
new(params)
Constructor.
- params
-
- x
-
The width of your item.
- y
-
The length of your item.
- z
-
The thickness of your item.
- weight
-
The weight of your item.
- name
-
The name of your item. If you're referring it back to an external system you may wish to use this field to store you item ids instead of item names.
name
Returns the name of this item.
describe
Returns all the important details about this item as a hash reference.
ROLES
This class installs Box::Calc::Role::Dimensional.