Object/Route/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::Route::APNIC;
2  
3 use strict;
4 use warnings;
5 use base qw/Net::Whois::Object/;
6  
7 # whois -h whois.apnic.net -t route
8 # % [whois.apnic.net]
9 # % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
10 #
11 # route: [mandatory] [single] [primary/lookup key]
12 # descr: [mandatory] [multiple] [ ]
13 # origin: [mandatory] [single] [primary/inverse key]
14 # holes: [optional] [multiple] [ ]
15 # country: [optional] [single] [ ]
16 # org: [optional] [multiple] [inverse key]
17 # member-of: [optional] [multiple] [inverse key]
18 # inject: [optional] [multiple] [ ]
19 # aggr-mtd: [optional] [single] [ ]
20 # aggr-bndry: [optional] [single] [ ]
21 # export-comps: [optional] [single] [ ]
22 # components: [optional] [single] [ ]
23 # remarks: [optional] [multiple] [ ]
24 # notify: [optional] [multiple] [inverse key]
25 # mnt-lower: [optional] [multiple] [inverse key]
26 # mnt-routes: [optional] [multiple] [inverse key]
27 # mnt-by: [mandatory] [multiple] [inverse key]
28 # changed: [mandatory] [multiple] [ ]
29 # source: [mandatory] [single] [ ]
30 #
31 # % This query was served by the APNIC Whois Service version 1.68.5 (WHOIS3)
32  
33 __PACKAGE__->attributes( 'primary', [ 'route' ] );
34 __PACKAGE__->attributes( 'mandatory', [ 'route', 'descr', 'origin', 'mnt_by', 'changed', 'source' ] );
35 __PACKAGE__->attributes( 'optional', [ 'holes', 'country', 'org', 'member_of', 'inject', 'aggr_mtd', 'aggr_bndry', 'export_comps', 'components', 'remarks', 'notify', 'mnt_lower', 'mnt_routes' ] );
36 __PACKAGE__->attributes( 'single', [ 'route', 'origin', 'country', 'aggr_mtd', 'aggr_bndry', 'export_comps', 'components', 'source' ] );
37 __PACKAGE__->attributes( 'multiple', [ 'descr', 'holes', 'org', 'member_of', 'inject', 'remarks', 'notify', 'mnt_lower', 'mnt_routes', 'mnt_by', 'changed' ] );
38  
39 =head1 NAME
40  
41 Net::Whois::Object::Route::APNIC - an object representation of the RPSL Route block
42  
43 =head1 DESCRIPTION
44  
45 Route objects are used to help configure your network's routers. Route objects,
46 in combination with the aut-num and other related objects, can be used to
47 describe your IPv4 routing policy in a compact form. This can help your
48 network identify routing policy errors and omissions more easily than by
49 reading long configuration files.
50  
51  
52 =head1 METHODS
53  
54 =head2 B<new( %options )>
55  
56 Constructor for the Net::Whois::Object::Route::APNIC class
57  
58 =cut
59  
60 sub new {
61 my ( $class, @options ) = @_;
62  
63 my $self = bless {}, $class;
64 $self->_init(@options);
65  
66  
67 return $self;
68 }
69  
70 =head2 B<route( [$route] )>
71  
72 Accessor to the route attribute.
73 Accepts an optional route, always return the current route.
74  
75 =head2 B<descr( [$descr] )>
76  
77 Accessor to the descr attribute.
78 Accepts an optional descr line to be added to the descr array,
79 always return the current descr array.
80  
81 =head2 B<origin( [$origin] )>
82  
83 Accessor to the origin attribute.
84 Accepts an optional origin, always return the current origin.
85  
86 =head2 B<pingable( [$pingable] )>
87  
88 Accessor to the pingable attribute.
89 Accepts an optional pingable line to be added to the pingable array,
90 always return the current pingable array.
91  
92 An IPv4 or an IPv6 address allowing a network operator to advertise an IP address of a node
93 that should be reachable from outside networks. This node can be
94 used as a destination address for diagnostic tests.
95 The IP address must be within the address range of the prefix
96 containing this attribute.
97  
98 =head2 B<ping_hdl( [$ping_hdl] )>
99  
100 Accessor to the ping_hdl attribute.
101 Accepts an optional ping_hdl line to be added to the ping_hdl array,
102 always return the current ping_hdl array.
103  
104 References a person or role capable of responding to queries
105 concerning the IP address(es) specified in the 'pingable'
106 attribute.
107  
108 =head2 B<holes( [$hole] )>
109  
110 Accessor to the holes attribute.
111 Accepts an optional hole to be added to the holes array,
112 always return the current holes array.
113  
114 =head2 B<org( [$org] )>
115  
116 Accessor to the org attribute.
117 Accepts an optional org, always return the current org.
118  
119 Points to an existing organisation object representing the entity that
120 holds the resource.
121  
122 The 'ORG-' string followed by 2 to 4 characters, followed by up to 5 digits
123 followed by a source specification. The first digit must not be "0".
124 Source specification starts with "-" followed by source name up to
125 9-character length.
126  
127 =head2 B<member_of( [$member_of] )>
128  
129 Accessor to the member_of attribute.
130 Accepts an optional member_of value to be added to the member_of array,
131 always return the current member_of array.
132  
133 =head2 B<inject( [$inject] )>
134  
135 Accessor to the inject attribute.
136 Accepts an optional inject value to be added to the inject array,
137 always return the current inject array.
138  
139 =head2 B<aggr_mtd( [$aggr_mtd] )>
140  
141 Accessor to the aggr_mtd attribute.
142 Accepts an optional aggr_mtd value to be added to the aggr_mtd array,
143 always return the current aggr_mtd.
144  
145 =head2 B<aggr_bndry( [$aggr_bndry] )>
146  
147 Accessor to the aggr_bndry attribute.
148 Accepts an optional aggr_bndry value to be added to the aggr_bndry array,
149 always return the current aggr_bndry.
150  
151 =head2 B<export_comps( [$export_comp] )>
152  
153 Accessor to the export_comps attribute.
154 Accepts an optional export_comp value to be added the export_comps array,
155 always return the current export_comps.
156  
157 =head2 B<components( [$component] )>
158  
159 Accessor to the components attribute.
160 Accepts an optional component to be added to the components array,
161 always return the current components.
162  
163 =head2 B<remarks( [$remark] )>
164  
165 Accessor to the remarks attribute.
166 Accepts an optional remark to be added to the remarks array,
167 always return the current 'remarks' array.
168  
169 =head2 B<cross_mnt( [$cross_mnt] )>
170  
171 Accessor to the cross_mnt attribute.
172 Accepts an optional cross_mnt value to be added to the cross_mnt array,
173 always return the current cross_mnt array.
174  
175 =head2 B<cross_nfy( [$cross_nfy] )>
176  
177 Accessor to the cross_nfy attribute.
178 Accepts an optional cross_nfy value to be added to the cross_nfy array,
179 always return the current cross_nfy array.
180  
181 =head2 B<notify( [$notify] )>
182  
183 Accessor to the notify attribute.
184 Accepts an optional notify value to be added to the notify array,
185 always return the current notify array.
186  
187 =head2 B<mnt_lower( [$mnt_lower] )>
188  
189 Accessor to the mnt_lower attribute.
190 Accepts an optional mnt_lower value to be added to the mnt_lower array,
191 always return the current mnt_lower array.
192  
193 =head2 B<mnt_routes( [$mnt_route] )>
194  
195 Accessor to the mnt_routes attribute.
196 Accepts an optional mnt_route to be added to the mnt_routes array,
197 always return the current mnt_routes array.
198  
199 =head2 B<mnt_by( [$mnt_by] )>
200  
201 Accessor to the mnt_by attribute.
202 Accepts an optional mnt_by value to be added to the mnt_by array,
203 always return the current mnt_by array.
204  
205 =head2 B<changed( [$changed] )>
206  
207 Accessor to the changed attribute.
208 Accepts an optional changed value to be added to the changed array,
209 always return the current changed array.
210  
211 =head2 B<source( [$source] )>
212  
213 Accessor to the source attribute.
214 Accepts an optional source, always return the current source.
215  
216 =head2 B<country( [$country] )>
217  
218 Accessor to the country attribute.
219 Accepts an optional country, always return the current country.
220 Two letter ISO 3166 code of the country or economy where the admin-c is based.
221  
222 Please use UPPERCASE letters.
223  
224 =cut
225  
226 1;