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