Object/AsBlock/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 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Net::Whois::Object::AsBlock::APNIC;
2  
3 use strict;
4 use warnings;
5 use base qw/Net::Whois::Object/;
6  
7 # whois -h whois.apnic.net -t as-block
8 # % [whois.apnic.net]
9 # % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
10 #
11 # as-block: [mandatory] [single] [primary/lookup key]
12 # descr: [optional] [multiple] [ ]
13 # remarks: [optional] [multiple] [ ]
14 # country: [optional] [single] [ ]
15 # admin-c: [mandatory] [multiple] [inverse key]
16 # tech-c: [mandatory] [multiple] [inverse key]
17 # org: [optional] [multiple] [inverse key]
18 # notify: [optional] [multiple] [inverse key]
19 # mnt-by: [mandatory] [multiple] [inverse key]
20 # mnt-lower: [optional] [multiple] [inverse key]
21 # changed: [mandatory] [multiple] [ ]
22 # source: [mandatory] [single] [ ]
23  
24 # % This query was served by the APNIC Whois Service version 1.68.5 (WHOIS1)
25  
26 __PACKAGE__->attributes( 'primary', ['as_block'] );
27 __PACKAGE__->attributes( 'mandatory', [ 'as_block', 'admin_c', 'tech_c', 'mnt_by', 'changed', 'source' ] );
28 __PACKAGE__->attributes( 'optional', [ 'descr', 'remarks', 'country', 'org', 'notify', 'mnt_lower' ] );
29 __PACKAGE__->attributes( 'single', [ 'as_block', 'country', 'source' ] );
30 __PACKAGE__->attributes( 'multiple', [ 'descr', 'remarks', 'admin_c', 'tech_c', 'org', 'notify', 'mnt_by', 'mnt_lower', 'changed' ] );
31  
32 =head1 NAME
33  
34 Net::Whois::Object::AsBlock::APNIC - an object representation of the RPSL AsBlock block
35  
36 =head1 DESCRIPTION
37  
38 An as-block object is needed to delegate a range of AS numbers to a
39 given repository. This object may be used for authorisation of the
40 creation of aut-num objects within the range specified by the
41 "as-block:" attribute.
42  
43 =head1 METHODS
44  
45 =head2 B<new( %options )>
46  
47 Constructor for the Net::Whois::Object::AsBlock::APNIC class
48  
49 =cut
50  
51 sub new {
52 my ( $class, @options ) = @_;
53  
54 my $self = bless {}, $class;
55 $self->_init(@options);
56  
57  
58 return $self;
59 }
60  
61 =head2 B<as_block( [$as_block] )>
62  
63 Accessor to the as_block attribute.
64 Accepts an optional as_block, always return the current as_block value.
65  
66 An as_block is a range of AS numbers delegated to a Regional or National Internet Registry
67 (NIR).
68  
69 The AS numbers in the range are subsequently assigned by the registry to
70 members or end-users in the region.
71 Information on individual AS numbers within an as-block object are
72 stored in the appropriate Internet Registry's Whois Database.
73  
74 =head2 B<descr( [$descr] )>
75  
76 Accessor to the descr attribute.
77 Accepts an optional descr, always return the current descr value.
78  
79 Description of the Internet Registry delegated the range of AS numbers shown
80 in the as-block.
81  
82 =head2 B<remarks( [$remarks] )>
83  
84 Accessor to the remarks attribute.
85 Accepts an optional remarks to be added to the remarks array,
86 always return the current remarks array.
87  
88 Information on the registry that maintains details of AS numbers assigned from
89 the as-block.
90  
91 Also includes where to direct a whois client to find further information on
92 the AS numbers.
93  
94 =head2 B<tech_c( [$tech_c] )>
95  
96 Accessor to the tech_c attribute.
97 Accepts an optional tech_c to be added to the tech_c array,
98 always return the current tech_c array.
99  
100 The NIC-handle of a technical contact 'person' or 'role' object. As more than
101 one person often fulfills a role function, there may be more than one tech-c
102 listed.
103  
104 A technical contact (tech-c) must be a person responsible for the
105 day-to-day operation of the network, but does not need to be
106 physically located at the site of the network.
107  
108  
109 =head2 B<admin_c( [$admin_c])>
110  
111 Accessor to the admin_c attribute.
112 Accepts an optional admin_c to be added to the admin_c array,
113 always return the current admin_c array.
114  
115 The NIC-handle of an on-site contact 'person' object. As more than one person
116 often fulfills a role function, there may be more than one admin-c listed.
117  
118 An administrative contact(admin-c) must be someone who is physically
119 located at the site of the network.
120  
121 =head2 B<notify( [$notify] )>
122  
123 Accessor to the notify attribute.
124 Accepts an optional value to be added notify array,
125 always return the current notify array.
126  
127 The email address to which notifications of changes
128 to the object should be sent.
129  
130 =head2 B<mnt_lower( [$mnt_lower] )>
131  
132 Accessor to the mnt_lower attribute.
133 Accepts an optional mnt_lower value to be added to the mnt_lower array,
134 always return the current mnt_lower array.
135  
136 The identifier of a registered 'mntner' object used to authorize the creation
137 of 'aut-num' objects within the range specified by the as-block.
138  
139 If no 'mnt-lower' is specified, the 'mnt-by' attribute is used for
140 authorization.
141  
142 =head2 B<mnt_by( [$mnt_by] )>
143  
144 Accessor to the mnt_by attribute.
145 Accepts an optional mnt_by value to be added to the mnt_by array,
146 always return the current mnt_by array.
147  
148 Lists a registered 'mntner' used to authorize and authenticate changes to this
149 object.
150  
151 When your database details are protected by a 'mntner' object, then
152 only persons with access to the security information of that 'mntner'
153 object will be able to change details.
154  
155 =head2 B<changed( [$changed] )>
156  
157 Accessor to the changed attribute.
158 Accepts an optional changed value to be added to the changed array,
159 always return the current changed array.
160  
161 The email address of who last updated the database object and the date it
162 occurred.
163  
164 Every time a change is made to a database object, this attribute will show
165 the email address of the person who made those changes.
166 Please use the address format specified in RFC 822 - Standard for
167 the Format of ARPA Internet Text Message and provide the date
168 format using one of the following two formats: YYYYMMDD or YYMMDD.
169  
170 =head2 B<source( [$source] )>
171  
172 Accessor to the source attribute.
173 Accepts an optional source, always return the current source.
174  
175 The database where the object is registered.
176  
177 =head2 B<org( [$org] )>
178  
179 Accessor to the org attribute.
180 Accepts an optional org, always return the current org.
181  
182 The organisation entity this object is bound to.
183  
184 =cut
185  
186 1;