File Coverage

blib/lib/Net/Whois/Object/Route.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 18 18 100.0


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