Object/Person/APNIC.pm untested

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