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