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