Object/RouteSet/APNIC.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 28 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Net::Whois::Object::RouteSet::APNIC;
2  
3 use strict;
4 use warnings;
5 use base qw/Net::Whois::Object/;
6  
7 # whois -h whois.apnic.net -t route-set
8 # % [whois.apnic.net]
9 # % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
10 #
11 # route-set: [mandatory] [single] [primary/lookup key]
12 # descr: [mandatory] [multiple] [ ]
13 # members: [optional] [multiple] [ ]
14 # mp-members: [optional] [multiple] [ ]
15 # mbrs-by-ref: [optional] [multiple] [inverse key]
16 # remarks: [optional] [multiple] [ ]
17 # org: [optional] [multiple] [inverse key]
18 # tech-c: [mandatory] [multiple] [inverse key]
19 # admin-c: [mandatory] [multiple] [inverse key]
20 # notify: [optional] [multiple] [inverse key]
21 # mnt-by: [mandatory] [multiple] [inverse key]
22 # mnt-lower: [optional] [multiple] [inverse key]
23 # changed: [mandatory] [multiple] [ ]
24 # source: [mandatory] [single] [ ]
25 #
26 # % This query was served by the APNIC Whois Service version 1.68.5 (WHOIS2)
27
28 __PACKAGE__->attributes( 'primary', [ 'route_set' ] );
29 __PACKAGE__->attributes( 'mandatory', [ 'route_set', 'descr', 'tech_c', 'admin_c', 'mnt_by', 'changed', 'source' ] );
30 __PACKAGE__->attributes( 'optional', [ 'members', 'mp_members', 'mbrs_by_ref', 'remarks', 'org', 'notify', 'mnt_lower' ] );
31 __PACKAGE__->attributes( 'single', [ 'route_set', 'source' ] );
32 __PACKAGE__->attributes( 'multiple', [ 'descr', 'members', 'mp_members', 'mbrs_by_ref', 'remarks', 'org', 'tech_c', 'admin_c', 'notify', 'mnt_by', 'mnt_lower', 'changed' ] );
33  
34 =head1 NAME
35  
36 Net::Whois::Object::RouteSet::APNIC - an object representation of the RPSL RouteSet block
37  
38 =head1 DESCRIPTION
39  
40 A route-set object defines a set of routes that can be represented by
41 route objects or by address prefixes. In the first case, the set is
42 populated by means of the "mbrs-by-ref:" attribute, in the latter, the
43 members of the set are explicitly listed in the "members:"
44 attribute. The "members:" attribute is a list of address prefixes or
45 other route-set names. Note that the route-set class is a set of
46 route prefixes, not of database route objects.
47  
48 =head1 METHODS
49  
50 =head2 B<new( %options )>
51  
52 Constructor for the Net::Whois::Object::RouteSet::APNIC class
53  
54 =cut
55  
56 sub new {
57 my ( $class, @options ) = @_;
58  
59 my $self = bless {}, $class;
60 $self->_init(@options);
61  
62  
63 return $self;
64 }
65  
66 =head2 B<route_set( [$route_set] )>
67  
68 Accessor to the route_set attribute.
69 Accepts an optional route_set, always return the current route_set.
70  
71 =head2 B<descr( [$descr] )>
72  
73 Accessor to the descr attribute.
74 Accepts an optional descr line to be added to the descr array,
75 always return the current descr array.
76  
77 =head2 B<members( [$members] )>
78  
79 Accessor to the members attribute.
80 Accepts an optional members value to be added to the members array,
81 always return the current members array.
82  
83 =head2 B<mbrs_by_ref( [$mbrs_by_ref] )>
84  
85 Accessor to the mbrs_by_ref attribute.
86 Accepts an optional mbrs_by_ref to be added to the mbrs_by_ref array,
87 always return the current 'mbrs_by_ref' array.
88  
89 =head2 B<remarks( [$remark] )>
90  
91 Accessor to the remarks attribute.
92 Accepts an optional remark to be added to the remarks array,
93 always return the current remarks array.
94  
95 =head2 B<org( [$org] )>
96  
97 Accessor to the org attribute.
98 Accepts an optional org, always return the current org.
99  
100 Points to an existing organisation object representing the entity that
101 holds the resource.
102  
103 The 'ORG-' string followed by 2 to 4 characters, followed by up to 5 digits
104 followed by a source specification. The first digit must not be "0".
105 Source specification starts with "-" followed by source name up to
106 9-character length.
107  
108 =head2 B<tech_c( [$contact] )>
109  
110 Accessor to the tech_c attribute.
111 Accepts an optional contact to be added to the tech_c array,
112 always return the current tech_c array.
113  
114 =head2 B<admin_c( [$contact] )>
115  
116 Accessor to the admin_c attribute.
117 Accepts an optional contact to be added to the admin_c array,
118 always return the current admin_c array.
119  
120 =head2 B<notify( [$notify] )>
121  
122 Accessor to the notify attribute.
123 Accepts an optional notify value to be added to the notify array,
124 always return the current notify array.
125  
126 =head2 B<mnt_by( [$mnt_by] )>
127  
128 Accessor to the mnt_by attribute.
129 Accepts an optional mnt_by value to be added to the mnt_by array,
130 always return the current mnt_by array.
131  
132 =head2 B<changed( [$changed] )>
133  
134 Accessor to the changed attribute.
135 Accepts an optional changed value to be added to the changed array,
136 always return the current changed array.
137  
138 =head2 B<source( [$source] )>
139  
140 Accessor to the source attribute.
141 Accepts an optional source, always return the current source.
142  
143 =head2 B<mnt_lower( [$mnt_lower] )>
144  
145 Accessor to the mnt_lower attribute.
146 Accepts an optional mnt_lower value to be added to the mnt_lower array,
147 always return the current mnt_lower array.
148  
149 =head2 B<mp_members( [$mp_member] )>
150  
151 Accessor to the mp_members attribute.
152 Accepts an optional mp_member to be added to the mp_members array,
153 always return the current mp_members array.
154  
155 =cut
156  
157 1;