File Coverage

blib/lib/Faker/Plugin/JaJp/AddressStreetSuffix.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 1 2 50.0
total 21 22 95.4


line stmt bran cond sub pod time code
1             package Faker::Plugin::JaJp::AddressStreetSuffix;
2              
3 5     5   23622 use 5.018;
  5         26  
4              
5 5     5   31 use strict;
  5         16  
  5         128  
6 5     5   28 use warnings;
  5         10  
  5         144  
7              
8 5     5   26 use Venus::Class 'base';
  5         12  
  5         33  
9              
10             base 'Faker::Plugin::JaJp';
11              
12             # VERSION
13              
14             our $VERSION = '1.17';
15              
16             # METHODS
17              
18             sub execute {
19 15     15 1 1404 my ($self, $data) = @_;
20              
21 15         57 return $self->faker->random->select(data_for_address_street_suffix());
22             }
23              
24             sub data_for_address_street_suffix {
25 15     15 0 64 state $address_street_suffix = [
26             '町'
27             ]
28             }
29              
30             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.17
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
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>
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>
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