| 1 | package Faker::Plugin::JaJp::AddressStreetSuffix; | ||
| 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::JaJp'; | |
| 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_suffix()); | |
| 22 | } | ||
| 23 | |||
| 24 | 15 | ▶ | sub data_for_address_street_suffix { |
|
Subroutine
data_for_address_street_suffix: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 25 | 15 | state $address_street_suffix = [ | |
| 26 | '町' | ||
| 27 | ] | ||
| 28 | } | ||
| 29 | |||
| 30 | 5 | 1; | |
| 31 | |||
| 32 | |||
| 33 | |||
| 34 | =head1 NAME | ||
| 35 | |||
| 36 | Faker::Plugin::JaJp::AddressStreetSuffix - Address Street Suffix | ||
| 37 | |||
| 38 | =cut | ||
| 39 | |||
| 40 | =head1 ABSTRACT | ||
| 41 | |||
| 42 | Address Street 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::AddressStreetSuffix; | ||
| 57 | |||
| 58 | my $plugin = Faker::Plugin::JaJp::AddressStreetSuffix->new; | ||
| 59 | |||
| 60 | # bless(..., "Faker::Plugin::JaJp::AddressStreetSuffix") | ||
| 61 | |||
| 62 | =cut | ||
| 63 | |||
| 64 | =head1 DESCRIPTION | ||
| 65 | |||
| 66 | This package provides methods for generating fake data for address street 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 street 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::AddressStreetSuffix; | ||
| 101 | |||
| 102 | my $plugin = Faker::Plugin::JaJp::AddressStreetSuffix->new; | ||
| 103 | |||
| 104 | # bless(..., "Faker::Plugin::JaJp::AddressStreetSuffix") | ||
| 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::AddressStreetSuffix; | ||
| 137 | |||
| 138 | my $plugin = Faker::Plugin::JaJp::AddressStreetSuffix->new; | ||
| 139 | |||
| 140 | # bless(..., "Faker::Plugin::JaJp::AddressStreetSuffix") | ||
| 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 | ||