Faker/Plugin/JaJp/PersonLastKanaName.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/PersonKanaName.pm ↑ Summary Faker/Plugin/JaJp/PersonLastName.pm »
1 package Faker::Plugin::JaJp::PersonLastKanaName;
2  
3 2 ▶use 5.018;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶use Venus::Class 'base';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 base 'Faker::Plugin::JaJp';
11  
12 # VERSION
13  
14 2 our $VERSION = '1.19';
15  
16 # METHODS
17  
18 6 ▶sub execute {
Subroutine execute: called CC=1 SCAR=0.0
Pod documented
19 6 my ($self, $data) = @_;
20  
21 6 return $self->faker->random->select(data_for_last_name());
22 }
23  
24 6 ▶sub data_for_last_name {
Subroutine data_for_last_name: called CC=1 SCAR=0.0
Pod undocumented
25 6 state $last_name = [
26 'アオタ',
27 'アオヤマ',
28 'イシダ',
29 'イダカ',
30 'イトウ',
31 'ウノ',
32 'エコダ',
33 'オオガキ',
34 'カノウ',
35 'カノウ',
36 'キジマ',
37 'キムラ',
38 'キリヤマ',
39 'クドウ',
40 'コイズミ',
41 'コバヤシ',
42 'コンドウ',
43 'サイトウ',
44 'サカモト',
45 'ササキ',
46 'サトウ',
47 'ササダ',
48 'スズキ',
49 'スギヤマ',
50 'タカハシ',
51 'タナカ',
52 'タナベ',
53 'ツダ',
54 'ナカジマ',
55 'ナカムラ',
56 'ナギサ',
57 'ナカツガワ',
58 'ニシノソノ',
59 'ノムラ',
60 'ハラダ',
61 'ハマダ',
62 'ヒロカワ',
63 'フジモト',
64 'マツモト',
65 'ミヤケ',
66 'ミヤザワ',
67 'ムラヤマ',
68 'ヤマギシ',
69 'ヤマグチ',
70 'ヤマダ',
71 'ヤマモト',
72 'ヨシダ',
73 'ヨシモト',
74 'ワカマツ',
75 'ワタナベ',
76 ]
77 }
78  
79 2 1;
80  
81  
82  
83 =head1 NAME
84  
85 Faker::Plugin::JaJp::PersonLastKanaName - Person Last Kana Name
86  
87 =cut
88  
89 =head1 ABSTRACT
90  
91 Person Last Kana Name for Faker
92  
93 =cut
94  
95 =head1 VERSION
96  
97 1.19
98  
99 =cut
100  
101 =head1 SYNOPSIS
102  
103 package main;
104  
105 use Faker::Plugin::JaJp::PersonLastKanaName;
106  
107 my $plugin = Faker::Plugin::JaJp::PersonLastKanaName->new;
108  
109 # bless(..., "Faker::Plugin::JaJp::PersonLastKanaName")
110  
111 =cut
112  
113 =head1 DESCRIPTION
114  
115 This package provides methods for generating fake data for person last kana name.
116  
117 =encoding utf8
118  
119 =cut
120  
121 =head1 INHERITS
122  
123 This package inherits behaviors from:
124  
125 L<Faker::Plugin::JaJp>
126  
127 =cut
128  
129 =head1 METHODS
130  
131 This package provides the following methods:
132  
133 =cut
134  
135 =head2 execute
136  
137 execute(HashRef $data) (Str)
138  
139 The execute method returns a returns a random fake person last kana name.
140  
141 I<Since C<1.10>>
142  
143 =over 4
144  
145 =item execute example 1
146  
147 package main;
148  
149 use Faker::Plugin::JaJp::PersonLastKanaName;
150  
151 my $plugin = Faker::Plugin::JaJp::PersonLastKanaName->new;
152  
153 # bless(..., "Faker::Plugin::JaJp::PersonLastKanaName")
154  
155 # my $result = $plugin->execute;
156  
157 # 'サイトウ';
158  
159 # my $result = $plugin->execute;
160  
161 # 'ササダ';
162  
163 # my $result = $plugin->execute;
164  
165 # 'ヤマギシ';
166  
167 =back
168  
169 =cut
170  
171 =head2 new
172  
173 new(HashRef $data) (Plugin)
174  
175 The new method returns a new instance of the class.
176  
177 I<Since C<1.10>>
178  
179 =over 4
180  
181 =item new example 1
182  
183 package main;
184  
185 use Faker::Plugin::JaJp::PersonLastKanaName;
186  
187 my $plugin = Faker::Plugin::JaJp::PersonLastKanaName->new;
188  
189 # bless(..., "Faker::Plugin::JaJp::PersonLastKanaName")
190  
191 =back
192  
193 =cut
194  
195 =head1 AUTHORS
196  
197 Awncorp, C<awncorp@cpan.org>
198  
199 =cut
200  
201 =head1 LICENSE
202  
203 Copyright (C) 2000, Al Newkirk.
204  
205 This program is free software, you can redistribute it and/or modify it under
206 the terms of the Apache license version 2.0.
207  
208 =cut
« Faker/Plugin/JaJp/PersonKanaName.pm ↑ Summary Faker/Plugin/JaJp/PersonLastName.pm »