Faker/Plugin/EsEs/CompanyNameSuffix.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/CompanyNamePrefix.pm ↑ Summary Faker/Plugin/EsEs/InternetDomainTld.pm »
1 package Faker::Plugin::EsEs::CompanyNameSuffix;
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::EsEs';
11  
12 # VERSION
13  
14 4 our $VERSION = '1.19';
15  
16 # METHODS
17  
18 9 ▶sub execute {
Subroutine execute: called CC=1 SCAR=0.0
Pod documented
19 9 my ($self, $data) = @_;
20  
21 9 return $self->faker->random->select(data_for_company_name_suffix());
22 }
23  
24 9 ▶sub data_for_company_name_suffix {
Subroutine data_for_company_name_suffix: called CC=1 SCAR=0.0
Pod undocumented
25 9 state $name = [
26 'e Hijo',
27 'e Hija',
28 'e Hijos',
29 'y Asoc.',
30 'y Flia.',
31 'SRL',
32 'SA',
33 'S. de H.',
34 ]
35 }
36  
37 4 1;
38  
39  
40  
41 =head1 NAME
42  
43 Faker::Plugin::EsEs::CompanyNameSuffix - Company Name Suffix
44  
45 =cut
46  
47 =head1 ABSTRACT
48  
49 Company Name Suffix for Faker
50  
51 =cut
52  
53 =head1 VERSION
54  
55 1.19
56  
57 =cut
58  
59 =head1 SYNOPSIS
60  
61 package main;
62  
63 use Faker::Plugin::EsEs::CompanyNameSuffix;
64  
65 my $plugin = Faker::Plugin::EsEs::CompanyNameSuffix->new;
66  
67 # bless(..., "Faker::Plugin::EsEs::CompanyNameSuffix")
68  
69 =cut
70  
71 =head1 DESCRIPTION
72  
73 This package provides methods for generating fake data for company name suffix.
74  
75 =encoding utf8
76  
77 =cut
78  
79 =head1 INHERITS
80  
81 This package inherits behaviors from:
82  
83 L<Faker::Plugin::EsEs>
84  
85 =cut
86  
87 =head1 METHODS
88  
89 This package provides the following methods:
90  
91 =cut
92  
93 =head2 execute
94  
95 execute(HashRef $data) (Str)
96  
97 The execute method returns a returns a random fake company name suffix.
98  
99 I<Since C<1.10>>
100  
101 =over 4
102  
103 =item execute example 1
104  
105 package main;
106  
107 use Faker::Plugin::EsEs::CompanyNameSuffix;
108  
109 my $plugin = Faker::Plugin::EsEs::CompanyNameSuffix->new;
110  
111 # bless(..., "Faker::Plugin::EsEs::CompanyNameSuffix")
112  
113 # my $result = $plugin->execute;
114  
115 # 'e Hijos';
116  
117 # my $result = $plugin->execute;
118  
119 # 'y Asoc.';
120  
121 # my $result = $plugin->execute;
122  
123 # 'SA';
124  
125 =back
126  
127 =cut
128  
129 =head2 new
130  
131 new(HashRef $data) (Plugin)
132  
133 The new method returns a new instance of the class.
134  
135 I<Since C<1.10>>
136  
137 =over 4
138  
139 =item new example 1
140  
141 package main;
142  
143 use Faker::Plugin::EsEs::CompanyNameSuffix;
144  
145 my $plugin = Faker::Plugin::EsEs::CompanyNameSuffix->new;
146  
147 # bless(..., "Faker::Plugin::EsEs::CompanyNameSuffix")
148  
149 =back
150  
151 =cut
152  
153 =head1 AUTHORS
154  
155 Awncorp, C<awncorp@cpan.org>
156  
157 =cut
158  
159 =head1 LICENSE
160  
161 Copyright (C) 2000, Al Newkirk.
162  
163 This program is free software, you can redistribute it and/or modify it under
164 the terms of the Apache license version 2.0.
165  
166 =cut
« Faker/Plugin/EsEs/CompanyNamePrefix.pm ↑ Summary Faker/Plugin/EsEs/InternetDomainTld.pm »