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