From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

#
# (c) Jan Gehring <jan.gehring@gmail.com>
#
use v5.12.5;
our $VERSION = '1.16.0'; # VERSION
__PACKAGE__->section("Memory Device");
__PACKAGE__->has(
[
'Part Number', 'Serial Number', 'Type', 'Speed',
'Size', 'Manufacturer', 'Bank Locator', 'Form Factor',
'Locator',
],
1
); # is_array 1
sub new {
my $that = shift;
my $proto = ref($that) || $that;
my $self = $that->SUPER::new(@_);
bless( $self, $proto );
return $self;
}
sub get {
my ( $self, $key, $is_array ) = @_;
if ( $key eq "Type" ) {
my $ret = $self->_search_for( $key, $is_array );
if ( $ret eq "<OUT OF SPEC>" ) {
return "";
}
return $ret;
}
return $self->SUPER::get( $key, $is_array );
}
1;