NAME
Parse::SAMGov::Exclusion::Name - Defines the Name object that is used in the Exclusion
VERSION
version 0.102
SYNOPSIS
# use either for an individual or entity
my $name = Parse::SAMGov::Exclusion::Name->new(
prefix => 'Mr',
first => 'John',
middle => 'James',
last => 'Johnson',
suffix => 'Jr',
);
say "this is an individual" unless $name->entity;
my $entity = Parse::SAMGov::Exclusion::Name->new(entity => 'ABC Corp Inc.');
say "this is an entity " if $name->entity;
METHODS
new
Creates a new Name object for an individual or an entity but not both. If the entity field is empty, it assumes the object represents an individual otherwise the object represents an entity with the name in the entity field.
entity
Sets/gets the entity name. If the object represents an individual, this will be undefined. If the object represents an entity this will be the name of the entity.
prefix
Holds the prefix such as Mr,Ms,Mrs,Sir etc. for the name of the individual being excluded.
first
Holds the first name of the individual being excluded.
middle
Holds the middle name of the individual being excluded.
last
Holds the last name of the individual being excluded.
suffix
Holds the suffix of the actual name of the person being excluded such as Jr, II, III etc.
AUTHOR
Vikas N Kumar <vikas@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 by Selective Intellect LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.