NAME

Faker::Provider::en_US::Address - Faker Localized en_US Address Provider

VERSION

version 0.12

SYNOPSIS

    use Faker;
    use Faker::Provider::en_US::Address;

    my $faker = Faker->new(locale => 'en_US');
    my $address = Faker::Provider::en_US::Address->new(factory => $faker);

    say $address->lines;

DESCRIPTION

Faker::Provider::en_US::Address is a Faker provider localized under en_US, which provides fake address data. Faker::Provider::en_US::Address inherits all attributes and methods from Faker::Provider::Address and implements the following new ones. Note: This is an early release available for testing and feedback and as such is subject to change.

METHODS

city_prefix

    $address->city_prefix;

    # West
    # South
    # South

The city_prefix method generates a random city prefix, common in the en_US locale.

country_name

    $address->country_name;

    # Tonga
    # Norfolk Island
    # Nicaragua

The country_name method generates a random country name.

line2

    $address->line2

    # Suite 709
    # Suite 621
    # Suite 907

The line2 method generates a random address string containing a common secondary address designation, common in the en_US locale.

state_abbr

    $address->state_abbr;

    # WV
    # ND
    # CT

The state_abbr method generates a random abbreviated state string, common in the en_US locale.

state_name

    $address->state_name;

    # Alaska
    # Washington
    # Maryland

The state_name method generates a random state string, common in the en_US locale.

AUTHOR

Al Newkirk <anewkirk@ana.io>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Al Newkirk.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.