The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Geo::Address::Mail::Standardizer::Results - Results of address standardization

SYNOPSIS

    package Geo::Address::Mail::Standardizer::My;
    use Moose;

    with 'Geo::Address::Mail::Standardizer';

    # use it

    my $std = Geo::Address::Mail::Standardizer::My->new(...);
    my $address = Geo::Address::Mail::MyCountry;
    my $results = $std->standardize($address);

    $results->is_changed('state');
    my @changes = $results->changed_fields;

ATTRIBUTES

changed

HashRef of changed fields. The keys are the names of the fields and the values are the new values of those fields.

standardized_address

A Geo::Address::Mail object (specifically of the subclass you passed in) that has been standardized.

METHODS

changed_count

Returns a count of the number of fields changed during standardization.

changed_fields

Returns an array of field names that were changed as part of the standardization.

get_changed($name)

Returns the value of the specified field if it was changed.

has_standardized_address

Returns true if a standardized address has been set for this results.

is_changed($name)

Returns true if the specifid field name was changed, otherwise false.

set_changed($name, $value)

Records that the specified field was changed to the specified value. Used by Standardizer implementations to set values.

AUTHOR

Cory G Watson, <gphat at cpan.org>

COPYRIGHT & LICENSE

Copyright 2010 Cory G Watson

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.