File Coverage

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