Faker/Plugin/EnUs/AddressCityPrefix.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 50.0% 1 / 2 totaltotal 96.0% 24 / 25 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Faker/Plugin/EnUs/AddressCityName.pm ↑ Summary Faker/Plugin/EnUs/AddressCitySuffix.pm »
1 package Faker::Plugin::EnUs::AddressCityPrefix;
2  
3 4 ▶use 5.018;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 4 ▶use Venus::Class 'base';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 4 base 'Faker::Plugin::EnUs';
11  
12 # VERSION
13  
14 4 our $VERSION = '1.19';
15  
16 # METHODS
17  
18 10 ▶sub execute {
Subroutine execute: called CC=1 SCAR=0.0
Pod documented
19 10 my ($self, $data) = @_;
20  
21 10 return $self->faker->random->select(data_for_address_city_prefix());
22 }
23  
24 10 ▶sub data_for_address_city_prefix {
Subroutine data_for_address_city_prefix: called CC=1 SCAR=0.0
Pod undocumented
25 10 state $address_city_prefix = [
26 'North',
27 'East',
28 'West',
29 'South',
30 'New',
31 'Lake',
32 'Port',
33 ]
34 }
35  
36 4 1;
37  
38  
39  
40 =head1 NAME
41  
42 Faker::Plugin::EnUs::AddressCityPrefix - Address City Prefix
43  
44 =cut
45  
46 =head1 ABSTRACT
47  
48 Address City Prefix for Faker
49  
50 =cut
51  
52 =head1 VERSION
53  
54 1.19
55  
56 =cut
57  
58 =head1 SYNOPSIS
59  
60 package main;
61  
62 use Faker::Plugin::EnUs::AddressCityPrefix;
63  
64 my $plugin = Faker::Plugin::EnUs::AddressCityPrefix->new;
65  
66 # bless(..., "Faker::Plugin::EnUs::AddressCityPrefix")
67  
68 =cut
69  
70 =head1 DESCRIPTION
71  
72 This package provides methods for generating fake data for address city prefix.
73  
74 =encoding utf8
75  
76 =cut
77  
78 =head1 INHERITS
79  
80 This package inherits behaviors from:
81  
82 L<Faker::Plugin::EnUs>
83  
84 =cut
85  
86 =head1 METHODS
87  
88 This package provides the following methods:
89  
90 =cut
91  
92 =head2 execute
93  
94 execute(HashRef $data) (Str)
95  
96 The execute method returns a returns a random fake address city prefix.
97  
98 I<Since C<1.10>>
99  
100 =over 4
101  
102 =item execute example 1
103  
104 package main;
105  
106 use Faker::Plugin::EnUs::AddressCityPrefix;
107  
108 my $plugin = Faker::Plugin::EnUs::AddressCityPrefix->new;
109  
110 # bless(..., "Faker::Plugin::EnUs::AddressCityPrefix")
111  
112 # my $result = $plugin->execute;
113  
114 # "West";
115  
116 # my $result = $plugin->execute;
117  
118 # "West";
119  
120 # my $result = $plugin->execute;
121  
122 # "Lake";
123  
124 =back
125  
126 =cut
127  
128 =head2 new
129  
130 new(HashRef $data) (Plugin)
131  
132 The new method returns a new instance of the class.
133  
134 I<Since C<1.10>>
135  
136 =over 4
137  
138 =item new example 1
139  
140 package main;
141  
142 use Faker::Plugin::EnUs::AddressCityPrefix;
143  
144 my $plugin = Faker::Plugin::EnUs::AddressCityPrefix->new;
145  
146 # bless(..., "Faker::Plugin::EnUs::AddressCityPrefix")
147  
148 =back
149  
150 =cut
151  
152 =head1 AUTHORS
153  
154 Awncorp, C<awncorp@cpan.org>
155  
156 =cut
157  
158 =head1 LICENSE
159  
160 Copyright (C) 2000, Al Newkirk.
161  
162 This program is free software, you can redistribute it and/or modify it under
163 the terms of the Apache license version 2.0.
164  
165 =cut
« Faker/Plugin/EnUs/AddressCityName.pm ↑ Summary Faker/Plugin/EnUs/AddressCitySuffix.pm »