FusionInventory::Agent::Tools::PartNumber - PartNumber class
This module provides a base class to handle PartNumber specific cases
The constructor. The following parameters are allowed, as keys of the %params hash:
the logger object to use (default: a new stderr logger)
This is the method checking for supported PartNumber sub-class handling the set PartNumber. The following parameters are allowed, as keys of the %params hash:
the partnumber string (mandatory)
the category to filter out subclasses
the manufacturer to select subclass by manufacturer
This is a method to be implemented by each subclass and to initialize the object. It can take partnumber matches as arguments when a subclass regexp match.
This is a method to be implemented by each subclass. It could simply return a regexp which could applied on partnumber string permitting to select the subclass in case of matches.
This is a method to be implemented by each subclass. It should simply return a constant string.
This is a method to return memory speed.
This is a method to return memory type.
This is a method to return revision part from the partnumber.
This is a method to return the partnumber itself in the case it has been fixed during init() method call.
To install FusionInventory::Agent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FusionInventory::Agent
CPAN shell
perl -MCPAN -e shell install FusionInventory::Agent
For more information on module installation, please visit the detailed CPAN module installation guide.