=item model - descriptive model name or number
+=item revision - revision name/number, subordinate to model
+
=back
=head1 METHODS
$self->ut_numbern('typenum')
|| $self->ut_foreign_key('classnum', 'hardware_class', 'classnum')
|| $self->ut_text('model')
+ || $self->ut_textn('revision')
;
return $error if $error;
return qsearchs('hardware_class', { 'classnum' => $self->classnum });
}
+=item description
+
+Returns the model and revision number.
+
+=cut
+
+sub description {
+ my $self = shift;
+ $self->model . ($self->revision ? ' '.$self->revision : '');
+}
+
=back
=head1 SEE ALSO