| 1 | package Faker::Plugin::EnUs::AddressStreetSuffix; | ||
| 2 | |||
| 3 | 6 | ▶ | use 5.018; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 6 | ▶ | use Venus::Class 'base'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 6 | base 'Faker::Plugin::EnUs'; | |
| 11 | |||
| 12 | # VERSION | ||
| 13 | |||
| 14 | 6 | our $VERSION = '1.19'; | |
| 15 | |||
| 16 | # METHODS | ||
| 17 | |||
| 18 | 30 | ▶ | sub execute { |
|
Subroutine
execute: called CC=1 SCAR=0.0
Pod
documented
| |||
| 19 | 30 | my ($self, $data) = @_; | |
| 20 | |||
| 21 | 30 | return $self->faker->random->select(data_for_address_street_suffix()); | |
| 22 | } | ||
| 23 | |||
| 24 | 30 | ▶ | sub data_for_address_street_suffix { |
|
Subroutine
data_for_address_street_suffix: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 25 | 30 | state $address_street_suffix = [ | |
| 26 | 'Alley', | ||
| 27 | 'Avenue', | ||
| 28 | 'Branch', | ||
| 29 | 'Bridge', | ||
| 30 | 'Brook', | ||
| 31 | 'Burg', | ||
| 32 | 'Bypass', | ||
| 33 | 'Camp', | ||
| 34 | 'Canyon', | ||
| 35 | 'Cape', | ||
| 36 | 'Causeway', | ||
| 37 | 'Center', | ||
| 38 | 'Circle', | ||
| 39 | 'Cliff', | ||
| 40 | 'Club', | ||
| 41 | 'Common', | ||
| 42 | 'Corner', | ||
| 43 | 'Course', | ||
| 44 | 'Court', | ||
| 45 | 'Cove', | ||
| 46 | 'Creek', | ||
| 47 | 'Crescent', | ||
| 48 | 'Crest', | ||
| 49 | 'Crossing', | ||
| 50 | 'Crossroad', | ||
| 51 | 'Curve', | ||
| 52 | 'Dale', | ||
| 53 | 'Dam', | ||
| 54 | 'Divide', | ||
| 55 | 'Drive', | ||
| 56 | 'Drive', | ||
| 57 | 'Estate', | ||
| 58 | 'Expressway', | ||
| 59 | 'Extension', | ||
| 60 | 'Fall', | ||
| 61 | 'Ferry', | ||
| 62 | 'Field', | ||
| 63 | 'Flat', | ||
| 64 | 'Ford', | ||
| 65 | 'Forest', | ||
| 66 | 'Forge', | ||
| 67 | 'Fork', | ||
| 68 | 'Fort', | ||
| 69 | 'Freeway', | ||
| 70 | 'Garden', | ||
| 71 | 'Gateway', | ||
| 72 | 'Glen', | ||
| 73 | 'Green', | ||
| 74 | 'Grove', | ||
| 75 | 'Harbor', | ||
| 76 | 'Haven', | ||
| 77 | 'Highway', | ||
| 78 | 'Hill', | ||
| 79 | 'Hills', | ||
| 80 | 'Hollow', | ||
| 81 | 'Inlet', | ||
| 82 | 'Inlet', | ||
| 83 | 'Island', | ||
| 84 | 'Island', | ||
| 85 | 'Isle', | ||
| 86 | 'Isle', | ||
| 87 | 'Junction', | ||
| 88 | 'Key', | ||
| 89 | 'Knoll', | ||
| 90 | 'Lake', | ||
| 91 | 'Land', | ||
| 92 | 'Landing', | ||
| 93 | 'Lane', | ||
| 94 | 'Loaf', | ||
| 95 | 'Lodge', | ||
| 96 | 'Lodge', | ||
| 97 | 'Loop', | ||
| 98 | 'Mall', | ||
| 99 | 'Manor', | ||
| 100 | 'Meadow', | ||
| 101 | 'Mill', | ||
| 102 | 'Mission', | ||
| 103 | 'Mission', | ||
| 104 | 'Motorway', | ||
| 105 | 'Mount', | ||
| 106 | 'Mountain', | ||
| 107 | 'Mountain', | ||
| 108 | 'Neck', | ||
| 109 | 'Orchard', | ||
| 110 | 'Oval', | ||
| 111 | 'Overpass', | ||
| 112 | 'Park', | ||
| 113 | 'Parkway', | ||
| 114 | 'Pass', | ||
| 115 | 'Passage', | ||
| 116 | 'Path', | ||
| 117 | 'Pike', | ||
| 118 | 'Pine', | ||
| 119 | 'Pines', | ||
| 120 | 'Place', | ||
| 121 | 'Plain', | ||
| 122 | 'Plaza', | ||
| 123 | 'Plaza', | ||
| 124 | 'Point', | ||
| 125 | 'Points', | ||
| 126 | 'Port', | ||
| 127 | 'Port', | ||
| 128 | 'Prairie', | ||
| 129 | 'Prairie', | ||
| 130 | 'Radial', | ||
| 131 | 'Ramp', | ||
| 132 | 'Ranch', | ||
| 133 | 'Rapid', | ||
| 134 | 'Rest', | ||
| 135 | 'Ridge', | ||
| 136 | 'River', | ||
| 137 | 'Road', | ||
| 138 | 'Road', | ||
| 139 | 'Route', | ||
| 140 | 'Row', | ||
| 141 | 'Rue', | ||
| 142 | 'Run', | ||
| 143 | 'Shore', | ||
| 144 | 'Skyway', | ||
| 145 | 'Spring', | ||
| 146 | 'Springs', | ||
| 147 | 'Springs', | ||
| 148 | 'Square', | ||
| 149 | 'Square', | ||
| 150 | 'Station', | ||
| 151 | map( | ||
| 152 | 'Street', 1..50 | ||
| 153 | ), | ||
| 154 | 'Summit', | ||
| 155 | 'Terrace', | ||
| 156 | 'Trail', | ||
| 157 | 'Trail', | ||
| 158 | 'Village', | ||
| 159 | 'Ville', | ||
| 160 | 'Way', | ||
| 161 | ] | ||
| 162 | } | ||
| 163 | |||
| 164 | 6 | 1; | |
| 165 | |||
| 166 | |||
| 167 | |||
| 168 | =head1 NAME | ||
| 169 | |||
| 170 | Faker::Plugin::EnUs::AddressStreetSuffix - Address Street Suffix | ||
| 171 | |||
| 172 | =cut | ||
| 173 | |||
| 174 | =head1 ABSTRACT | ||
| 175 | |||
| 176 | Address Street Suffix for Faker | ||
| 177 | |||
| 178 | =cut | ||
| 179 | |||
| 180 | =head1 VERSION | ||
| 181 | |||
| 182 | 1.19 | ||
| 183 | |||
| 184 | =cut | ||
| 185 | |||
| 186 | =head1 SYNOPSIS | ||
| 187 | |||
| 188 | package main; | ||
| 189 | |||
| 190 | use Faker::Plugin::EnUs::AddressStreetSuffix; | ||
| 191 | |||
| 192 | my $plugin = Faker::Plugin::EnUs::AddressStreetSuffix->new; | ||
| 193 | |||
| 194 | # bless(..., "Faker::Plugin::EnUs::AddressStreetSuffix") | ||
| 195 | |||
| 196 | =cut | ||
| 197 | |||
| 198 | =head1 DESCRIPTION | ||
| 199 | |||
| 200 | This package provides methods for generating fake data for address street suffix. | ||
| 201 | |||
| 202 | =encoding utf8 | ||
| 203 | |||
| 204 | =cut | ||
| 205 | |||
| 206 | =head1 INHERITS | ||
| 207 | |||
| 208 | This package inherits behaviors from: | ||
| 209 | |||
| 210 | L<Faker::Plugin::EnUs> | ||
| 211 | |||
| 212 | =cut | ||
| 213 | |||
| 214 | =head1 METHODS | ||
| 215 | |||
| 216 | This package provides the following methods: | ||
| 217 | |||
| 218 | =cut | ||
| 219 | |||
| 220 | =head2 execute | ||
| 221 | |||
| 222 | execute(HashRef $data) (Str) | ||
| 223 | |||
| 224 | The execute method returns a returns a random fake address street suffix. | ||
| 225 | |||
| 226 | I<Since C<1.10>> | ||
| 227 | |||
| 228 | =over 4 | ||
| 229 | |||
| 230 | =item execute example 1 | ||
| 231 | |||
| 232 | package main; | ||
| 233 | |||
| 234 | use Faker::Plugin::EnUs::AddressStreetSuffix; | ||
| 235 | |||
| 236 | my $plugin = Faker::Plugin::EnUs::AddressStreetSuffix->new; | ||
| 237 | |||
| 238 | # bless(..., "Faker::Plugin::EnUs::AddressStreetSuffix") | ||
| 239 | |||
| 240 | # my $result = $plugin->execute; | ||
| 241 | |||
| 242 | # "Key"; | ||
| 243 | |||
| 244 | # my $result = $plugin->execute; | ||
| 245 | |||
| 246 | # "Mission"; | ||
| 247 | |||
| 248 | # my $result = $plugin->execute; | ||
| 249 | |||
| 250 | # "Street"; | ||
| 251 | |||
| 252 | =back | ||
| 253 | |||
| 254 | =cut | ||
| 255 | |||
| 256 | =head2 new | ||
| 257 | |||
| 258 | new(HashRef $data) (Plugin) | ||
| 259 | |||
| 260 | The new method returns a new instance of the class. | ||
| 261 | |||
| 262 | I<Since C<1.10>> | ||
| 263 | |||
| 264 | =over 4 | ||
| 265 | |||
| 266 | =item new example 1 | ||
| 267 | |||
| 268 | package main; | ||
| 269 | |||
| 270 | use Faker::Plugin::EnUs::AddressStreetSuffix; | ||
| 271 | |||
| 272 | my $plugin = Faker::Plugin::EnUs::AddressStreetSuffix->new; | ||
| 273 | |||
| 274 | # bless(..., "Faker::Plugin::EnUs::AddressStreetSuffix") | ||
| 275 | |||
| 276 | =back | ||
| 277 | |||
| 278 | =cut | ||
| 279 | |||
| 280 | =head1 AUTHORS | ||
| 281 | |||
| 282 | Awncorp, C<awncorp@cpan.org> | ||
| 283 | |||
| 284 | =cut | ||
| 285 | |||
| 286 | =head1 LICENSE | ||
| 287 | |||
| 288 | Copyright (C) 2000, Al Newkirk. | ||
| 289 | |||
| 290 | This program is free software, you can redistribute it and/or modify it under | ||
| 291 | the terms of the Apache license version 2.0. | ||
| 292 | |||
| 293 | =cut | ||