Object/Person.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Object/PeeringSet.pm ↑ Summary Object/Poem.pm »
1 package Net::Whois::Object::Person;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use base qw/Net::Whois::Object/;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 #######################################################################################
8 # The following lines where auto-generated by 'perl whois_to_attribute.pl Person'
9  
10 # % This is the RIPE Database query service.
11 # % The objects are in RPSL format.
12 # %
13 # % The RIPE Database is subject to Terms and Conditions.
14 # % See http://www.ripe.net/db/support/db-terms-conditions.pdf
15 #
16 # person: [mandatory] [single] [lookup key]
17 # address: [mandatory] [multiple] [ ]
18 # phone: [mandatory] [multiple] [ ]
19 # fax-no: [optional] [multiple] [ ]
20 # e-mail: [optional] [multiple] [lookup key]
21 # org: [optional] [multiple] [inverse key]
22 # nic-hdl: [mandatory] [single] [primary/lookup key]
23 # remarks: [optional] [multiple] [ ]
24 # notify: [optional] [multiple] [inverse key]
25 # mnt-by: [mandatory] [multiple] [inverse key]
26 # created: [generated] [single] [ ]
27 # last-modified: [generated] [single] [ ]
28 # source: [mandatory] [single] [ ]
29 #
30 # % This query was served by the RIPE Database Query Service version 1.99 (WAGYU)
31 #
32 #
33 1 __PACKAGE__->attributes( 'primary', [ 'person' ] );
34 1 __PACKAGE__->attributes( 'mandatory', [ 'person', 'address', 'phone', 'nic_hdl', 'mnt_by', 'source' ] );
35 1 __PACKAGE__->attributes( 'optional', [ 'fax_no', 'e_mail', 'org', 'remarks', 'notify', 'created', 'last_modified' ] );
36 1 __PACKAGE__->attributes( 'single', [ 'person', 'nic_hdl', 'created', 'last_modified', 'source' ] );
37 1 __PACKAGE__->attributes( 'multiple', [ 'address', 'phone', 'fax_no', 'e_mail', 'org', 'remarks', 'notify', 'mnt_by' ] );
38  
39 # End of auto-generated lines
40 #######################################################################################
41  
42 =head1 NAME
43  
44 Net::Whois::Object::Person - an object representation of the RPSL Person block
45  
46 =head1 DESCRIPTION
47  
48 A person object contains information about technical or administrative
49 contact responsible for the object where it is referenced. Once the
50 object is created, the value of the "person:" attribute cannot be
51 changed.
52  
53 =head1 METHODS
54  
55 =head2 B<new( %options )>
56  
57 Constructor for the Net::Whois::Object::Person class
58  
59 =cut
60  
61 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
62 1 my ( $class, @options ) = @_;
63  
64 1 my $self = bless {}, $class;
65 1 $self->_init(@options);
66  
67 1 return $self;
68 }
69  
70 =head2 B<person( [$person] )>
71  
72 Accessor to the person attribute.
73 Accepts an optional person, always return the current person.
74  
75 =head2 B<address( [$address] )>
76  
77 Accessor to the address attribute.
78 Accepts an optional address line to be added to the address array,
79 always return the current address array.
80  
81 =head2 B<phone( [$phone] )>
82  
83 Accessor to the phone attribute.
84 Accepts an optional phone number to be added to the phone array,
85 always return the current phone array.
86  
87 =head2 B<fax_no( [$fax_no] )>
88  
89 Accessor to the fax_no attribute.
90 Accepts an optional fax_no to be added to the fax_no array,
91 always return the current fax_no array.
92  
93 =head2 B<e_mail( [$e_mail] )>
94  
95 Accessor to the e_mail attribute.
96 Accepts an optional e_mail to be added to the e_mail array,
97 always return the current e_mail array.
98  
99 =head2 B<org( [$org] )>
100  
101 Accessor to the org attribute.
102 Accepts an optional org, always return the current org array.
103  
104 Points to an existing organisation object representing the entity that
105 holds the resource.
106  
107 The 'ORG-' string followed by 2 to 4 characters, followed by up to 5 digits
108 followed by a source specification. The first digit must not be "0".
109 Source specification starts with "-" followed by source name up to
110 9-character length.
111  
112 =head2 B<nic_hdl( [$nic_hdl] )>
113  
114 Accessor to the nic_hdl attribute.
115 Accepts an optional nic_hdl, always return the current nic_hdl.
116  
117 =head2 B<remarks( [$remark] )>
118  
119 Accessor to the remarks attribute.
120 Accepts an optional remark to be added to the remarks array,
121 always return the current remarks array.
122  
123 =head2 B<notify( [$notify] )>
124  
125 Accessor to the notify attribute.
126 Accepts an optional notify value to be added to the notify array,
127 always return the current notify array.
128  
129 =head2 B<abuse_mailbox( [$abuse_mailbox] )>
130  
131 Accessor to the abuse_mailbox attribute.
132 Accepts an optional abuse_mailbox value to be added to the abuse_mailbox array,
133 always return the current abuse_mailbox array.
134  
135 =head2 B<mnt_by( [$mnt_by] )>
136  
137 Accessor to the mnt_by attribute.
138 Accepts an optional mnt_by value to be added to the mnt_by array,
139 always return the current mnt_by array.
140  
141 =head2 B<changed( [$changed] )>
142  
143 Accessor to the changed attribute.
144 Accepts an optional changed value to be added to the changed array,
145 always return the current changed array.
146  
147 =head2 B<source( [$source] )>
148  
149 Accessor to the source attribute.
150 Accepts an optional source, always return the current source.
151  
152 =cut
153  
154 1 1;
« Object/PeeringSet.pm ↑ Summary Object/Poem.pm »