Object/Organisation/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::Organisation::APNIC;
2  
3 use strict;
4 use warnings;
5 use base qw/Net::Whois::Object::Organisation/;
6  
7 # whois -h whois.apnic.net -t organisation
8 # % [whois.apnic.net]
9 # % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
10 #
11 # organisation: [mandatory] [single] [primary/lookup key]
12 # org-name: [mandatory] [single] [lookup key]
13 # org-type: [mandatory] [single] [ ]
14 # descr: [optional] [multiple] [ ]
15 # country: [optional] [multiple] [ ]
16 # address: [mandatory] [multiple] [ ]
17 # phone: [optional] [multiple] [ ]
18 # fax-no: [optional] [multiple] [ ]
19 # e-mail: [mandatory] [multiple] [lookup key]
20 # geoloc: [optional] [single] [ ]
21 # language: [optional] [multiple] [ ]
22 # org: [optional] [multiple] [inverse key]
23 # admin-c: [optional] [multiple] [inverse key]
24 # tech-c: [optional] [multiple] [inverse key]
25 # ref-nfy: [optional] [multiple] [inverse key]
26 # mnt-ref: [mandatory] [multiple] [inverse key]
27 # notify: [optional] [multiple] [inverse key]
28 # abuse-mailbox: [optional] [multiple] [inverse key]
29 # mnt-by: [mandatory] [multiple] [inverse key]
30 # changed: [mandatory] [multiple] [ ]
31 # source: [mandatory] [single] [ ]
32 #
33 # % This query was served by the APNIC Whois Service version 1.68.5 (WHOIS2)
34  
35 __PACKAGE__->attributes( 'primary', [ 'organisation' ] );
36 __PACKAGE__->attributes( 'mandatory', [ 'organisation', 'org_name', 'org_type', 'address', 'e_mail', 'mnt_ref', 'mnt_by', 'changed', 'source' ] );
37 __PACKAGE__->attributes( 'optional', [ 'descr', 'country', 'phone', 'fax_no', 'geoloc', 'language', 'org', 'admin_c', 'tech_c', 'ref_nfy', 'notify', 'abuse_mailbox' ] );
38 __PACKAGE__->attributes( 'single', [ 'organisation', 'org_name', 'org_type', 'geoloc', 'source' ] );
39 __PACKAGE__->attributes( 'multiple', [ 'descr', 'country', 'address', 'phone', 'fax_no', 'e_mail', 'language', 'org', 'admin_c', 'tech_c', 'ref_nfy', 'mnt_ref', 'notify', 'abuse_mailbox', 'mnt_by', 'changed' ] );
40  
41 =head1 NAME
42  
43 Net::Whois::Object::Organisation - an object representation of the RPSL Organisation block
44  
45 =head1 DESCRIPTION
46  
47 The organisation object is designed to provide an easy way of mapping resources to a particular organisaiton.
48  
49 =head1 METHODS
50  
51 =head2 B<new( %options )>
52  
53 Constructor for the Net::Whois::Object::Organisation class
54  
55 =cut
56  
57 sub new {
58 my ( $class, @options ) = @_;
59  
60 my $self = bless {}, $class;
61 $self->_init(@options);
62  
63 return $self;
64 }
65  
66 =head2 B<organisation( [$organisation] )>
67  
68 Accessor to the organisation attribute.
69 Accepts an optional organisation, always return the current organisation.
70  
71 =head2 B<org_name( [$org_name] )>
72  
73 Accessor to the org_name attribute.
74 Accepts an optional org_name, always return the current org_name.
75  
76 =head2 B<org_type( [$org_type] )>
77  
78 Accessor to the org_type attribute.
79 Accepts an optional org_type, always return the current org_type.
80  
81 Possible values are:
82 IANA for Internet Assigned Numbers Authority, RIR for Regional Internet
83 Registries, NIR for National Internet Registries, LIR for Local Internet
84 Registries, and OTHER for all other organisations.
85  
86 =head2 B<org( [$org] )>
87  
88 Accessor to the org attribute.
89 Accepts an optional org, always return the current org.
90  
91 Points to an existing organisation object representing the entity that
92 holds the resource.
93  
94 The 'ORG-' string followed by 2 to 4 characters, followed by up to 5 digits
95 followed by a source specification. The first digit must not be "0".
96 Source specification starts with "-" followed by source name up to
97 9-character length.
98  
99 =head2 B<address( [$address] )>
100  
101 Accessor to the address attribute.
102 Accepts an optional address line to be added to the address array,
103 always return the current address array.
104  
105 =head2 B<phone( [$phone] )>
106  
107 Accessor to the phone attribute.
108 Accepts an optional phone number to be added to the phone array,
109 always return the current phone array.
110  
111 =head2 B<fax_no( [$fax_no] )>
112  
113 Accessor to the fax_no attribute.
114 Accepts an optional fax_no to be added to the fax_no array,
115 always return the current fax_no array.
116  
117 =head2 B<e_mail( [$e_mail] )>
118  
119 Accessor to the e_mail attribute.
120 Accepts an optional e_mail to be added to the e_mail array,
121 always return the current e_mail array.
122  
123 =head2 B<country( [$country] )>
124  
125 Accessor to the country attribute.
126 Accepts an optional country to be added to the country array,
127 always return the current country array.
128  
129 =head2 B<language( [$language] )>
130  
131 Accessor to the language attribute.
132 Accepts an optional language to be added to the language array,
133 always return the current language array.
134  
135 =head2 B<admin_c( [$contact] )>
136  
137 Accessor to the admin_c attribute.
138 Accepts an optional contact to be added to the admin_c array,
139 always return the current admin_c array.
140  
141 =head2 B<tech_c( [$contact] )>
142  
143 Accessor to the tech_c attribute.
144 Accepts an optional contact to be added to the tech_c array,
145 always return the current tech_c array.
146  
147 =head2 B<descr( [$descr] )>
148  
149 Accessor to the descr attribute.
150 Accepts an optional descr line to be added to the descr array,
151 always return the current descr array.
152  
153 =head2 B<remarks( [$remark] )>
154  
155 Accessor to the remarks attribute.
156 Accepts an optional remark to be added to the remarks array,
157 always return the current remarks array.
158  
159 =head2 B<notify( [$notify] )>
160  
161 Accessor to the notify attribute.
162 Accepts an optional notify value to be added to the notify array,
163 always return the current notify array.
164  
165 =head2 B<mnt_by( [$mnt_by] )>
166  
167 Accessor to the mnt_by attribute.
168 Accepts an optional mnt_by value to be added to the mnt_by array,
169 always return the current mnt_by array.
170  
171 =head2 B<changed( [$changed] )>
172  
173 Accessor to the changed attribute.
174 Accepts an optional changed value to be added to the changed array,
175 always return the current changed array.
176  
177 =head2 B<source( [$source] )>
178  
179 Accessor to the source attribute.
180 Accepts an optional source, always return the current source.
181  
182 =head2 B<ref_nfy( [$ref_nfy] )>
183  
184 Accessor to the ref_nfy attribute.
185 Accepts an optional ref_nfy value to be added to the ref_nfy array,
186 always return the current ref_nfy array.
187  
188 =head2 B<mnt_ref( [$mnt_ref] )>
189  
190 Accessor to the mnt_ref attribute.
191 Accepts an optional mnt_ref value to be added to the mnt_ref array,
192 always return the current mnt_ref array.
193  
194 =cut
195  
196 1;