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