| 1 | package Faker::Plugin::JaJp::PersonFirstKanaName; | ||||||||||
| 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=2 SCAR=6.9
Pod
documented
| |||||||||||
| 19 | 6 | my ($self, $data) = @_; | |||||||||
| 20 | |||||||||||
| 21 | 6 | ▶ | return (lc($self->faker->person_gender) eq 'male') | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | ? $self->faker->random->select(data_for_first_kana_name_male()) | ||||||||||
| 23 | : $self->faker->random->select(data_for_first_kana_name_female()); | ||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 4 | ▶ | sub data_for_first_kana_name_male { | ||||||||
|
Subroutine
data_for_first_kana_name_male: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 27 | 4 | state $first_kana_name = [ | |||||||||
| 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 | 2 | ▶ | sub data_for_first_kana_name_female { | ||||||||
|
Subroutine
data_for_first_kana_name_female: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 62 | 2 | state $first_kana_name = [ | |||||||||
| 63 | 'アケミ', | ||||||||||
| 64 | 'アスカ', | ||||||||||
| 65 | 'カオリ', | ||||||||||
| 66 | 'カナ', | ||||||||||
| 67 | 'クミコ', | ||||||||||
| 68 | 'サユリ', | ||||||||||
| 69 | 'サトミ', | ||||||||||
| 70 | 'チヨ', | ||||||||||
| 71 | 'ナオコ', | ||||||||||
| 72 | 'ナナミ', | ||||||||||
| 73 | 'ハナコ', | ||||||||||
| 74 | 'ハルカ', | ||||||||||
| 75 | 'マアヤ', | ||||||||||
| 76 | 'マイ', | ||||||||||
| 77 | 'ミカコ', | ||||||||||
| 78 | 'ミキ', | ||||||||||
| 79 | 'モモコ', | ||||||||||
| 80 | 'ユイ', | ||||||||||
| 81 | 'ユミコ', | ||||||||||
| 82 | 'ヨウコ', | ||||||||||
| 83 | 'リカ', | ||||||||||
| 84 | ] | ||||||||||
| 85 | } | ||||||||||
| 86 | |||||||||||
| 87 | 2 | 1; | |||||||||
| 88 | |||||||||||
| 89 | |||||||||||
| 90 | |||||||||||
| 91 | =head1 NAME | ||||||||||
| 92 | |||||||||||
| 93 | Faker::Plugin::JaJp::PersonFirstKanaName - Person First Kana Name | ||||||||||
| 94 | |||||||||||
| 95 | =cut | ||||||||||
| 96 | |||||||||||
| 97 | =head1 ABSTRACT | ||||||||||
| 98 | |||||||||||
| 99 | Person First Kana Name for Faker | ||||||||||
| 100 | |||||||||||
| 101 | =cut | ||||||||||
| 102 | |||||||||||
| 103 | =head1 VERSION | ||||||||||
| 104 | |||||||||||
| 105 | 1.19 | ||||||||||
| 106 | |||||||||||
| 107 | =cut | ||||||||||
| 108 | |||||||||||
| 109 | =head1 SYNOPSIS | ||||||||||
| 110 | |||||||||||
| 111 | package main; | ||||||||||
| 112 | |||||||||||
| 113 | use Faker::Plugin::JaJp::PersonFirstKanaName; | ||||||||||
| 114 | |||||||||||
| 115 | my $plugin = Faker::Plugin::JaJp::PersonFirstKanaName->new; | ||||||||||
| 116 | |||||||||||
| 117 | # bless(..., "Faker::Plugin::JaJp::PersonFirstKanaName") | ||||||||||
| 118 | |||||||||||
| 119 | =cut | ||||||||||
| 120 | |||||||||||
| 121 | =head1 DESCRIPTION | ||||||||||
| 122 | |||||||||||
| 123 | This package provides methods for generating fake data for person first kana name. | ||||||||||
| 124 | |||||||||||
| 125 | =encoding utf8 | ||||||||||
| 126 | |||||||||||
| 127 | =cut | ||||||||||
| 128 | |||||||||||
| 129 | =head1 INHERITS | ||||||||||
| 130 | |||||||||||
| 131 | This package inherits behaviors from: | ||||||||||
| 132 | |||||||||||
| 133 | L<Faker::Plugin::JaJp> | ||||||||||
| 134 | |||||||||||
| 135 | =cut | ||||||||||
| 136 | |||||||||||
| 137 | =head1 METHODS | ||||||||||
| 138 | |||||||||||
| 139 | This package provides the following methods: | ||||||||||
| 140 | |||||||||||
| 141 | =cut | ||||||||||
| 142 | |||||||||||
| 143 | =head2 execute | ||||||||||
| 144 | |||||||||||
| 145 | execute(HashRef $data) (Str) | ||||||||||
| 146 | |||||||||||
| 147 | The execute method returns a returns a random fake person first kana name. | ||||||||||
| 148 | |||||||||||
| 149 | I<Since C<1.10>> | ||||||||||
| 150 | |||||||||||
| 151 | =over 4 | ||||||||||
| 152 | |||||||||||
| 153 | =item execute example 1 | ||||||||||
| 154 | |||||||||||
| 155 | package main; | ||||||||||
| 156 | |||||||||||
| 157 | use Faker::Plugin::JaJp::PersonFirstKanaName; | ||||||||||
| 158 | |||||||||||
| 159 | my $plugin = Faker::Plugin::JaJp::PersonFirstKanaName->new; | ||||||||||
| 160 | |||||||||||
| 161 | # bless(..., "Faker::Plugin::JaJp::PersonFirstKanaName") | ||||||||||
| 162 | |||||||||||
| 163 | # my $result = $plugin->execute; | ||||||||||
| 164 | |||||||||||
| 165 | # 'タクマ'; | ||||||||||
| 166 | |||||||||||
| 167 | # my $result = $plugin->execute; | ||||||||||
| 168 | |||||||||||
| 169 | # 'トモヤ'; | ||||||||||
| 170 | |||||||||||
| 171 | # my $result = $plugin->execute; | ||||||||||
| 172 | |||||||||||
| 173 | # 'ヒデキ'; | ||||||||||
| 174 | |||||||||||
| 175 | =back | ||||||||||
| 176 | |||||||||||
| 177 | =cut | ||||||||||
| 178 | |||||||||||
| 179 | =head2 new | ||||||||||
| 180 | |||||||||||
| 181 | new(HashRef $data) (Plugin) | ||||||||||
| 182 | |||||||||||
| 183 | The new method returns a new instance of the class. | ||||||||||
| 184 | |||||||||||
| 185 | I<Since C<1.10>> | ||||||||||
| 186 | |||||||||||
| 187 | =over 4 | ||||||||||
| 188 | |||||||||||
| 189 | =item new example 1 | ||||||||||
| 190 | |||||||||||
| 191 | package main; | ||||||||||
| 192 | |||||||||||
| 193 | use Faker::Plugin::JaJp::PersonFirstKanaName; | ||||||||||
| 194 | |||||||||||
| 195 | my $plugin = Faker::Plugin::JaJp::PersonFirstKanaName->new; | ||||||||||
| 196 | |||||||||||
| 197 | # bless(..., "Faker::Plugin::JaJp::PersonFirstKanaName") | ||||||||||
| 198 | |||||||||||
| 199 | =back | ||||||||||
| 200 | |||||||||||
| 201 | =cut | ||||||||||
| 202 | |||||||||||
| 203 | =head1 AUTHORS | ||||||||||
| 204 | |||||||||||
| 205 | Awncorp, C<awncorp@cpan.org> | ||||||||||
| 206 | |||||||||||
| 207 | =cut | ||||||||||
| 208 | |||||||||||
| 209 | =head1 LICENSE | ||||||||||
| 210 | |||||||||||
| 211 | Copyright (C) 2000, Al Newkirk. | ||||||||||
| 212 | |||||||||||
| 213 | This program is free software, you can redistribute it and/or modify it under | ||||||||||
| 214 | the terms of the Apache license version 2.0. | ||||||||||
| 215 | |||||||||||
| 216 | =cut | ||||||||||