File Coverage

blib/lib/Net/Whois/Object/RtrSet.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::RtrSet;
2              
3 1     1   74100 use strict;
  1         10  
  1         29  
4 1     1   5 use warnings;
  1         2  
  1         27  
5 1     1   5 use base qw/Net::Whois::Object/;
  1         3  
  1         552  
6              
7             #######################################################################################
8             # The following lines where auto-generated by 'perl whois_to_attribute.pl RtrSet'
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             # rtr-set: [mandatory] [single] [primary/lookup key]
17             # descr: [mandatory] [multiple] [ ]
18             # members: [optional] [multiple] [ ]
19             # mp-members: [optional] [multiple] [ ]
20             # mbrs-by-ref: [optional] [multiple] [inverse key]
21             # remarks: [optional] [multiple] [ ]
22             # org: [optional] [multiple] [inverse key]
23             # tech-c: [mandatory] [multiple] [inverse key]
24             # admin-c: [mandatory] [multiple] [inverse key]
25             # notify: [optional] [multiple] [inverse key]
26             # mnt-by: [mandatory] [multiple] [inverse key]
27             # mnt-lower: [optional] [multiple] [inverse key]
28             # changed: [mandatory] [multiple] [ ]
29             # created: [generated] [single] [ ]
30             # last-modified: [generated] [single] [ ]
31             # source: [mandatory] [single] [ ]
32             #
33             # % This query was served by the RIPE Database Query Service version 1.79.2 (DB-4)
34             #
35             #
36             __PACKAGE__->attributes( 'primary', [ 'rtr_set' ] );
37             __PACKAGE__->attributes( 'mandatory', [ 'rtr_set', 'descr', 'tech_c', 'admin_c', 'mnt_by', 'changed', 'source' ] );
38             __PACKAGE__->attributes( 'optional', [ 'members', 'mp_members', 'mbrs_by_ref', 'remarks', 'org', 'notify', 'mnt_lower', 'created', 'last_modified' ] );
39             __PACKAGE__->attributes( 'single', [ 'rtr_set', 'created', 'last_modified', 'source' ] );
40             __PACKAGE__->attributes( 'multiple', [ 'descr', 'members', 'mp_members', 'mbrs_by_ref', 'remarks', 'org', 'tech_c', 'admin_c', 'notify', 'mnt_by', 'mnt_lower', 'changed' ] );
41              
42             # End of auto-generated lines
43             #######################################################################################
44              
45             =head1 NAME
46              
47             Net::Whois::Object::RtrSet - an object representation of the RPSL RtrSet block
48              
49             =head1 DESCRIPTION
50              
51             A rtr-set object defines a set of routers. A set may be described by
52             the "members:" attribute, which is a list of inet-rtr names, IPv4
53             addresses or other rtr-set names. A set may also be populated by means
54             of the "mbrs-by-ref:" attribute, in which case it is represented by
55             inet-rtr objects.
56              
57             =head1 METHODS
58              
59             =head2 B
60              
61             Constructor for the Net::Whois::Object::RtrSet class
62              
63             =cut
64              
65             sub new {
66 1     1 1 4 my ( $class, @options ) = @_;
67              
68 1         4 my $self = bless {}, $class;
69 1         9 $self->_init(@options);
70              
71 1         3 return $self;
72             }
73              
74             =head2 B
75              
76             Accessor to the rtr_set attribute.
77             Accepts an optional rtr_set, always return the current rtr_set.
78              
79             =head2 B
80              
81             Accessor to the descr attribute.
82             Accepts an optional descr line to be added to the descr array,
83             always return the current descr array.
84              
85             =head2 B
86              
87             Accessor to the members attribute.
88             Accepts an optional member to be added to the members array,
89             always return the current members array.
90              
91             =head2 B
92              
93             Accessor to the mbrs_by_ref attribute.
94             Accepts an optional mbrs_by_ref value to be added to the mbrs_by_ref array,
95             always return the current mbrs_by_ref array.
96              
97             =head2 B
98              
99             Accessor to the remarks attribute.
100             Accepts an optional remark to be added to the remarks array,
101             always return the current remarks array.
102              
103             =head2 B
104              
105             Accessor to the org attribute.
106             Accepts an optional org, always return the current org.
107              
108             Points to an existing organisation object representing the entity that
109             holds the resource.
110              
111             The 'ORG-' string followed by 2 to 4 characters, followed by up to 5 digits
112             followed by a source specification. The first digit must not be "0".
113             Source specification starts with "-" followed by source name up to
114             9-character length.
115              
116             =head2 B
117              
118             Accessor to the tech_c attribute.
119             Accepts an optional contact to be added to the tech_c array,
120             always return the current tech_c array.
121              
122             =head2 B
123              
124             Accessor to the admin_c attribute.
125             Accepts an optional contact to be added to the admin_c array,
126             always return the current admin_c array.
127              
128             =head2 B
129              
130             Accessor to the notify attribute.
131             Accepts an optional notify value to be added to the notify array,
132             always return the current notify array.
133              
134             =head2 B
135              
136             Accessor to the mnt_by attribute.
137             Accepts an optional mnt_by value to be added to the mnt_by array,
138             always return the current mnt_by array.
139              
140             =head2 B
141              
142             Accessor to the changed attribute.
143             Accepts an optional changed value to be added to the changed array,
144             always return the current changed array.
145              
146             =head2 B
147              
148             Accessor to the source attribute.
149             Accepts an optional source, always return the current source.
150              
151             =head2 B
152              
153             Accessor to the mp_members attribute.
154             Accepts an optional mp_member to be added to the mp_members array,
155             always return the current mp_members array.
156              
157             This attribute performs the same function as the members attribute above.
158             The difference is that mp-members allows both IPv4 and IPv6 address families
159             to be specified.
160              
161             Explicitly lists IPv4 or IPv6 'members' of the rtr-set can be:
162              
163             * inet-rtr objects
164             * other rtr-set objects
165             * ipv4 address
166             * ipv6 address
167              
168             =cut
169              
170             1;