Object/InetRtr.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 24 / 24 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Object/InetNum/APNIC.pm ↑ Summary Object/Information.pm »
1 package Net::Whois::Object::InetRtr;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use base qw/Net::Whois::Object/;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 #######################################################################################
8 # The following lines where auto-generated by 'perl whois_to_attribute.pl InetRtr'
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 # inet-rtr: [mandatory] [single] [primary/lookup key]
17 # descr: [mandatory] [multiple] [ ]
18 # alias: [optional] [multiple] [ ]
19 # local-as: [mandatory] [single] [inverse key]
20 # ifaddr: [mandatory] [multiple] [inverse key]
21 # interface: [optional] [multiple] [ ]
22 # peer: [optional] [multiple] [ ]
23 # mp-peer: [optional] [multiple] [ ]
24 # member-of: [optional] [multiple] [inverse key]
25 # remarks: [optional] [multiple] [ ]
26 # org: [optional] [multiple] [inverse key]
27 # admin-c: [mandatory] [multiple] [inverse key]
28 # tech-c: [mandatory] [multiple] [inverse key]
29 # notify: [optional] [multiple] [inverse key]
30 # mnt-by: [mandatory] [multiple] [inverse key]
31 # changed: [mandatory] [multiple] [ ]
32 # created: [generated] [single] [ ]
33 # last-modified: [generated] [single] [ ]
34 # source: [mandatory] [single] [ ]
35 #
36 # % This query was served by the RIPE Database Query Service version 1.79.2 (DB-2)
37 #
38 #
39 1 __PACKAGE__->attributes( 'primary', [ 'inet_rtr' ] );
40 1 __PACKAGE__->attributes( 'mandatory', [ 'inet_rtr', 'descr', 'local_as', 'ifaddr', 'admin_c', 'tech_c', 'mnt_by', 'changed', 'source' ] );
41 1 __PACKAGE__->attributes( 'optional', [ 'alias', 'interface', 'peer', 'mp_peer', 'member_of', 'remarks', 'org', 'notify', 'created', 'last_modified' ] );
42 1 __PACKAGE__->attributes( 'single', [ 'inet_rtr', 'local_as', 'created', 'last_modified', 'source' ] );
43 1 __PACKAGE__->attributes( 'multiple', [ 'descr', 'alias', 'ifaddr', 'interface', 'peer', 'mp_peer', 'member_of', 'remarks', 'org', 'admin_c', 'tech_c', 'notify', 'mnt_by', 'changed' ] );
44  
45 # End of auto-generated lines
46 #######################################################################################
47  
48 =head1 NAME
49  
50 Net::Whois::Object::InetRtr - an object representation of a RPSL InetRtr block
51  
52 =head1 DESCRIPTION
53  
54 The inet-rtr object specifies routers.
55  
56 =head1 METHODS
57  
58 =head2 new ( @options )
59  
60 Constructor for the Net::Whois::Object::InetRtr class
61  
62 =cut
63  
64 sub new {
65 1 ▶ my ( $class, @options ) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod documented
66  
67 1 my $self = bless {}, $class;
68 1 $self->_init(@options);
69  
70 1 return $self;
71 }
72  
73 =head2 B<inet_rtr( [$inet_rtr] )>
74  
75 Accessor to the inet_rtr attribute.
76 Accepts an optional inet_rtr, always return the current inet_rtr value.
77  
78 The inet_rtr attribute is a valid DNS name for a router without a trailing
79 dot.
80  
81 =head2 B<descr( [$descr] )>
82  
83 Accessor to the descr attribute.
84 Accepts an optional descr value to be added to the descr array,
85 always return the current descr array.
86  
87 A short description related to the object's purpose.
88  
89 =head2 B<alias( [$alias] )>
90  
91 Accessor to the alias attribute.
92 Accepts an optional alias to be added to the alias array,
93 always return the current alias array.
94  
95 Each alias attribute, if present, is also standard DNS name for the
96 specified router.
97  
98 =head2 B<local_as( [$local_as] )>
99  
100 Accessor to the local_as attribute.
101 Accepts an optional local_as, always return the current local_as.
102  
103 The local_as attribute specifies the AS Number of the AS that owns or
104 operates this router.
105  
106 =head2 B<ifaddr( [$ifaddr] )>
107  
108 Accessor to the ifaddr attribute.
109 Accepts an optional ifaddr value to be added to the ifaddr array,
110 always return the current ifaddr array.
111  
112 The ifaddr attribute specifies the interface address within an Internet
113 router, as well as an optional action to set other parameters on this
114 interface.
115  
116 =head2 B<peer( [$peer] )>
117  
118 Accessor to the peer attribute.
119 Accepts an optional peer to be added to the peer array,
120 always return the current peer array.
121  
122 The peer attribute specifies the details of any interior or exterior router
123 peering.
124  
125 =head2 B<member_of( [$member_of] )>
126  
127 Accessor to the member_of attribute.
128 Accepts an optional member_of value to be be added to the member_of array,
129 always return the current member_of array.
130  
131 The member_of attribute value identifies a set object that this object
132 wants to be a member of. This claim, however, should be acknowledged by a
133 respective mbrs-by-ref attribute in the referenced object.
134  
135 =head2 B<remarks( [$remark] )>
136  
137 Accessor to the remarks attribute.
138 Accepts an optional remark to be added to the remarks array,
139 always return the current remarks array.
140  
141 General remarks. May include a URL or instructions on where to send abuse
142 complaints.
143  
144 =head2 B<admin_c( [$contact] )>
145  
146 Accessor to the admin_c attribute.
147 Accepts an optional contact to be added to the admin_c array,
148 always return the current admin_c array.
149  
150 The NIC-handle of an on-site contact Person object. As more than one person
151 often fulfills a role function, there may be more than one admin_c listed.
152  
153 An administrative contact (admin_c) must be someone who is physically
154 located at the site of the network.
155  
156 =head2 B<tech_c( [$contact] )>
157  
158 Accessor to the tech_c attribute.
159 Accepts an optional contact to be added to the tech_c array,
160 always return the current tech_c array.
161  
162 The NIC-handle of a technical contact Person or Role object. As more than
163 one person often fulfills a role function, there may be more than one tech_c
164 listed.
165  
166 A technical contact (tech_c) must be a person responsible for the
167 day-to-day operation of the network, but does not need to be
168 physically located at the site of the network.
169  
170 =head2 B<notify( [$notify] )>
171  
172 Accessor to the notify attribute.
173 Accepts an optional notify value to be added to the notify array,
174 always return the current notify array.
175  
176 The email address to which notifications of changes to this object should
177 be sent.
178  
179 =head2 B<mnt_by( [$mnt_by] )>
180  
181 Accessor to the mnt_by attribute.
182 Accepts an optional mnt_by value to be added to the mnt_by array,
183 always return the current mnt_by array.
184  
185 Lists a registered 'mntner' used to authorize and authenticate changes to this
186 object.
187  
188 =head2 B<changed( [$changed] )>
189  
190 Accessor to the changed attribute.
191 Accepts an optional changed value to be added to the changed array,
192 always return the current changed array.
193  
194 The email address of who last updated the database object and the date it
195 occurred.
196  
197 Every time a change is made to a database object, this attribute will show
198 the email address of the person who made those changes.
199 Please use the address format specified in RFC 822 - Standard for
200 the Format of ARPA Internet Text Message and provide the date
201 format using one of the following two formats: YYYYMMDD or YYMMDD.
202  
203 =head2 B<source( [$source] )>
204  
205 Accessor to the source attribute.
206 Accepts an optional source, always return the current source.
207  
208 The database where the object is registered.
209  
210 =head2 B<mp_peer( [$peer] )>
211  
212 Accessor to the mp_peer attribute.
213 Accepts an optional peer to be added to the mp_peer array,
214 always return the current mp_peer array.
215  
216 This attribute performs the same function as the peer attribute above. The
217 difference is that mp-peer allows both IPv4 and IPv6 address families to be
218 specified.
219  
220 The mp-peer attribute extends the peer attribute for IPv6 addresses.
221  
222 =head2 B<interface( [$interface] )>
223  
224 Accessor to the interface attribute.
225 Accepts an optional interface to be added to the interface array,
226 always return the current interface array.
227  
228 The interface attribute specifies a multi-protocol interface address within
229 an Internet router, optional action and tunnel definition.
230  
231 =head2 B<org( [$org] )>
232  
233 Accessor to the org attribute.
234 Accepts an optional org to be added to the org array,
235 always return the current org array.
236  
237 The organisation entity this object is bound to.
238  
239 =cut
240  
241 1 1;
« Object/InetNum/APNIC.pm ↑ Summary Object/Information.pm »