Object/Domain/APNIC.pm untested

filter: Statementstmt 0.0% 0 / 26 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 35 CC 2 SCAR 12.0
CC
2
Cov
0%
domain
6.0
new
2.0
BEGIN
2.0
CRAP 3.3
1 package Net::Whois::Object::Domain::APNIC;
2  
3 use strict;
4 use warnings;
5 use base qw/Net::Whois::Object/;
6  
7 # whois -h whois.apnic.net -t domain
8 # % [whois.apnic.net]
9 # % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
10 #
11 # domain: [mandatory] [single] [primary/lookup key]
12 # descr: [mandatory] [multiple] [ ]
13 # country: [optional] [single] [ ]
14 # org: [optional] [multiple] [inverse key]
15 # admin-c: [mandatory] [multiple] [inverse key]
16 # tech-c: [mandatory] [multiple] [inverse key]
17 # zone-c: [mandatory] [multiple] [inverse key]
18 # nserver: [optional] [multiple] [inverse key]
19 # ds-rdata: [optional] [multiple] [inverse key]
20 # remarks: [optional] [multiple] [ ]
21 # notify: [optional] [multiple] [inverse key]
22 # mnt-by: [mandatory] [multiple] [inverse key]
23 # mnt-lower: [optional] [multiple] [inverse key]
24 # changed: [mandatory] [multiple] [ ]
25 # source: [mandatory] [single] [ ]
26 #
27 # % This query was served by the APNIC Whois Service version 1.68.5 (WHOIS4)
28  
29
30 __PACKAGE__->attributes( 'primary', ['domain'] );
31 __PACKAGE__->attributes( 'mandatory', [ 'domain', 'descr', 'admin_c', 'tech_c', 'zone_c', 'mnt_by', 'changed', 'source' ] );
32 __PACKAGE__->attributes( 'optional', [ 'country', 'org', 'nserver', 'ds_rdata', 'remarks', 'notify', 'mnt_lower' ] );
33 __PACKAGE__->attributes( 'single', [ 'domain', 'country', 'source' ] );
34 __PACKAGE__->attributes( 'multiple', [ 'descr', 'org', 'admin_c', 'tech_c', 'zone_c', 'nserver', 'ds_rdata', 'remarks', 'notify', 'mnt_by', 'mnt_lower', 'changed' ] );
35  
36  
37 =head1 NAME
38  
39 Net::Whois::Object::Domain::APNIC - an object representation of a RPSL Domain block
40  
41 =head1 DESCRIPTION
42  
43 The domain object represents Top Level Domain (TLD) and other domain
44 registrations. It is also used for Reverse Delegations. The domain
45 name is written in fully qualified format, without a trailing " . "
46  
47 =head1 METHODS
48  
49 =head2 new ( @options )
50  
51 Constructor for the Net::Whois::Object::Domain::APNIC class
52  
53 =cut
54  
55 sub new {
56 my ( $class, @options ) = @_;
57  
58 my $self = bless {}, $class;
59 $self->_init(@options);
60  
61 return $self;
62 }
63  
64 =head2 B<domain( [$domain] )>
65  
66 Accessor to the domain attribute.
67 Accepts an optional domain, always return the current domain.
68  
69 The domain name in fully qualified format, without a trailing dot. If a
70 trailing dot is included it will be removed.
71  
72 =cut
73  
74 sub domain {
75 my ( $self, $domain ) = @_;
76  
77 # Enforce the format
78 $domain =~ s/\.$// if $domain;
79  
80 return $self->_single_attribute_setget( 'domain', $domain );
81 }
82  
83 =head2 B<descr( [$descr] )>
84  
85 Accessor to the descr attribute.
86 Accepts an optional descr line to be added to the descr array,
87 always return the current descr array.
88  
89 The name of the organization responsible for the reverse delegation. Or can
90 describe the use of the IP range described in the domain object.
91  
92 =head2 B<org( [$org] )>
93  
94 Accessor to the org attribute.
95 Accepts an optional org value to be added to the org array,
96 always return the current org array.
97  
98 The organisation responsible for this domain.
99  
100 =head2 B<admin_c( [$contact] )>
101  
102 Accessor to the admin_c attribute.
103 Accepts an optional contact to be added to the admin_c array,
104 always return the current admin_c array.
105  
106 The NIC-handle of an on-site contact 'person' object. As more than one person
107 often fulfills a role function, there may be more than one admin_c listed.
108  
109 An administrative contact (admin_c) must be someone who is physically
110 located at the site of the network.
111  
112 =head2 B<tech_c( [$contact] )>
113  
114 Accessor to the tech_c attribute.
115 Accepts an optional contact to be added to the tech_c array,
116 always return the current tech_c array.
117  
118 The NIC-handle of a technical contact 'person' or 'role' object. As more than
119 one person often fulfills a role function, there may be more than one tech_c
120 listed.
121  
122 A technical contact (tech_c) must be a person responsible for the
123 day-to-day operation of the network, but does not need to be
124 physically located at the site of the network.
125  
126 =head2 B<zone_c( [$contact] )>
127  
128 Accessor to the zone_c attribute.
129 Accepts an optional contact to be added to the zone_c array,
130 always return the current zone_c array.
131  
132 The NIC-handle of a 'person' or 'role' object with authority over a zone.
133  
134 =head2 B<nserver( [$server] )>
135  
136 Accessor to the nserver attribute.
137 Accepts an optional server to be added to the nserver array,
138 always return the current nserver array.
139  
140 A list of nameservers for a domain object. A minimum of one nameserver is
141 mandatory.
142  
143 =head2 B<ds_rdata( [$server] )>
144  
145 Accessor to the ds_rdata attribute.
146 Accepts an optional server to be added to the ds_rdata array,
147 always return the current ds_rdata array.
148  
149 The ds_rdata attribute holds information about a signed delegation record
150 for DNSSEC (short for DNS Security Extensions)
151  
152 =head2 B<sub_dom( [$dom] )>
153  
154 Accessor to the sub_dom attribute.
155 Accepts an optional dom to be added to the sub_dom array,
156 always return the current sub_dom array.
157  
158 The sub_dom attribute specifies a list of sub-domains of a domain. Domain
159 names are relative to the domain represented by the domain object that
160 contains this attribute
161  
162 =head2 B<dom_net( [$dom_net] )>
163  
164 Accessor to the dom_net attribute.
165 Accepts an optional dom_net value to be added to the dom_net array,
166 always return the current dom_net array.
167  
168 The dom_net attribute contains a list of IP networks in a domain.
169  
170 =head2 B<remarks( [$remark] )>
171  
172 Accessor to the remarks attribute.
173 Accepts an optional remark to be added to the remarks array,
174 always return the current remarks array.
175  
176 General remarks. May include a URL or email address.
177  
178 =head2 B<notify( [$notify] )>
179  
180 Accessor to the notify attribute.
181 Accepts an optional notify value to be added to the notify array,
182 always return the current notify array.
183  
184 The email address to which notifications of changes to this object should be
185 sent.
186  
187 =head2 B<mnt_by( [$mnt_by] )>
188  
189 Accessor to the mnt_by attribute.
190 Accepts an optional mnt_by value to be added to the mnt_by array,
191 always return the current mnt_by array.
192  
193 Lists a registered 'mntner' used to authorize and authenticate changes to
194 this object.
195  
196 =head2 B<mnt_lower( [$mnt_lower] )>
197  
198 Accessor to the mnt_lower attribute.
199 Accepts an optional mnt_lower value to be added to the mnt_lower array,
200 always return the current mnt_lower array.
201  
202 The identifier of a registered mntner object used to authorize the creation of
203 reverse domain objects more specific than the reverse domain specified by this
204 object.
205  
206 =head2 B<refer( [$refer] )>
207  
208 Accessor to the refer attribute.
209 Accepts an optional refer, always return the current refer.
210  
211 The refer attribute is used to refer a query to another authorative
212 database. See the "RIPE Database Query Reference Manual" for an
213 explanation of its use. This will be redundant when forward domains are
214 removed and may be deprecated.
215  
216 =head2 B<changed( [$changed] )>
217  
218 Accessor to the changed attribute.
219 Accepts an optional changed value to be added to the changed array,
220 always return the current changed array.
221  
222 The email address of who last updated the database object and the date it
223 occurred.
224  
225 Every time a change is made to a database object, this attribute will show
226 the email address of the person who made those changes.
227 Please use the address format specified in RFC 822 - Standard for
228 the Format of ARPA Internet Text Message and provide the date
229 format using one of the following two formats: YYYYMMDD or YYMMDD.
230  
231 =head2 B<source( [$source] )>
232  
233 Accessor to the source attribute.
234 Accepts an optional source, always return the current source.
235  
236 The database where the object is registered.
237  
238 =cut
239  
240 1;