Fixed Address.pm POD to include firstName and lastName attributes.

This commit is contained in:
Kaleb Murphy 2008-07-30 15:55:44 +00:00
parent de983627cd
commit d972141607

View file

@ -188,9 +188,13 @@ A hash reference that contains one or more of the following:
A human readable label like "home" or "work".
=head4 name
=head4 firstName
The name of the company or person to address this to.
The first name of the company or person to address this to.
=head4 lastName
The last name of the company or person to address this to.
=head4 address1
@ -233,7 +237,6 @@ The address book that this address belongs to.
sub update {
my ($self, $newProperties) = @_;
my $id = id $self;
#foreach my $field (qw(address1 address2 address3 state code city label name country phoneNumber)) {
foreach my $field (qw(address1 address2 address3 state code city label firstName lastName country phoneNumber)) {
$properties{$id}{$field} = (exists $newProperties->{$field}) ? $newProperties->{$field} : $properties{$id}{$field};
}