sub init :Init { my ($self, $args) = @_; my @objs = map { Objects::StatusElement->new('Name' => $_); } keys(@$args->{'STATUSES'}); $self->set(\@statuses, \@objs); }