Object/Role/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 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Net::Whois::Object::Role::APNIC;
2  
3 use strict;
4 use warnings;
5 use base qw/Net::Whois::Object/;
6  
7 # whois -h whois.apnic.net -t role
8 # % [whois.apnic.net]
9 # % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
10 #
11 # role: [mandatory] [single] [lookup key]
12 # address: [mandatory] [multiple] [ ]
13 # country: [mandatory] [single] [ ]
14 # phone: [mandatory] [multiple] [ ]
15 # fax-no: [optional] [multiple] [ ]
16 # e-mail: [mandatory] [multiple] [lookup key]
17 # org: [optional] [multiple] [inverse key]
18 # admin-c: [mandatory] [multiple] [inverse key]
19 # tech-c: [mandatory] [multiple] [inverse key]
20 # nic-hdl: [mandatory] [single] [primary/lookup key]
21 # remarks: [optional] [multiple] [ ]
22 # notify: [optional] [multiple] [inverse key]
23 # abuse-mailbox: [optional] [multiple] [inverse key]
24 # mnt-by: [mandatory] [multiple] [inverse key]
25 # changed: [mandatory] [multiple] [ ]
26 # source: [mandatory] [single] [ ]
27 #
28 # % This query was served by the APNIC Whois Service version 1.68.5 (WHOIS1)
29  
30 __PACKAGE__->attributes( 'primary', [ 'nic_hdl' ] );
31 __PACKAGE__->attributes( 'mandatory', [ 'role', 'address', 'country', 'phone', 'e_mail', 'admin_c', 'tech_c', 'nic_hdl', 'mnt_by', 'changed', 'source' ] );
32 __PACKAGE__->attributes( 'optional', [ 'fax_no', 'org', 'remarks', 'notify', 'abuse_mailbox' ] );
33 __PACKAGE__->attributes( 'single', [ 'role', 'country', 'nic_hdl', 'source' ] );
34 __PACKAGE__->attributes( 'multiple', [ 'address', 'phone', 'fax_no', 'e_mail', 'org', 'admin_c', 'tech_c', 'remarks', 'notify', 'abuse_mailbox', 'mnt_by', 'changed' ] );
35  
36  
37 =head1 NAME
38  
39 Net::Whois::Object::Role::APNIC - an object representation of the RPSL Role block
40  
41 =head1 DESCRIPTION
42  
43 The role class is similar to the person class. However, instead of
44 describing a human being, it describes a role performed by one or more
45 human beings. Examples include help desks, network monitoring
46 centres, system administrators, etc. A role object is particularly
47 useful since often a person performing a role may change; however the
48 role itself remains. The "nic-hdl:" attributes of the person and role
49 classes share the same name space. Once the object is created, the
50 value of the "role:" attribute cannot be changed.
51  
52 =head1 METHODS
53  
54 =head2 B<new( %options )>
55  
56 Constructor for the Net::Whois::Object::Role::APNIC class
57  
58 =cut
59  
60 sub new {
61 my ( $class, @options ) = @_;
62  
63 my $self = bless {}, $class;
64 $self->_init(@options);
65  
66 return $self;
67 }
68  
69 =head2 B<role( [$role] )>
70  
71 Accessor to the role attribute.
72 Accepts an optional role, always return the current role.
73  
74 =head2 B<address( [$address] )>
75  
76 Accessor to the address attribute.
77 Accepts an optional address line to be added to the address array,
78 always return the current address array.
79  
80 =head2 B<phone( [$phone] )>
81  
82 Accessor to the phone attribute.
83 Accepts an optional phone to be added to the phone array,
84 always return the current phone array.
85  
86 =head2 B<fax_no( [$fax_no] )>
87  
88 Accessor to the fax_no attribute.
89 Accepts an optional fax_no to be added to the fax_no array,
90 always return the current fax_no array.
91  
92 =head2 B<e_mail( [$e_mail] )>
93  
94 Accessor to the e_mail attribute.
95 Accepts an optional e_mail to be added to the e_mail array,
96 always return the current e_mail array.
97  
98 =head2 B<org( [$org] )>
99  
100 Accessor to the org attribute.
101 Accepts an optional org, always return the current org.
102  
103 Points to an existing organisation object representing the entity that
104 holds the resource.
105  
106 The 'ORG-' string followed by 2 to 4 characters, followed by up to 5 digits
107 followed by a source specification. The first digit must not be "0".
108 Source specification starts with "-" followed by source name up to
109 9-character length.
110  
111 =head2 B<trouble( [$trouble] )>
112  
113 Accessor to the trouble attribute.
114 Accepts an optional trouble value to be added to the trouble array,
115 always return the current trouble array.
116  
117 =head2 B<admin_c( [$contact] )>
118  
119 Accessor to the admin_c attribute.
120 Accepts an optional contact to be added to the admin_c array,
121 always return the current admin_c array.
122  
123 =head2 B<tech_c( [$contact] )>
124  
125 Accessor to the tech_c attribute.
126 Accepts an optional contact to be added to the tech_c array,
127 always return the current tech_c array.
128  
129 =head2 B<nic_hdl( [$nic_hdl] )>
130  
131 Accessor to the nic_hdl attribute.
132 Accepts an optional nic_hdl, always return the current nic_hdl.
133  
134 =head2 B<remarks( [$remark] )>
135  
136 Accessor to the remarks attribute.
137 Accepts an optional remark to be added to the remarks array,
138 always return the current remarks array.
139  
140 =head2 B<notify( [$notify] )>
141  
142 Accessor to the notify attribute.
143 Accepts an optional notify value to be added to the notify array,
144 always return the current notify array.
145  
146 =head2 B<mnt_by( [$mnt_by] )>
147  
148 Accessor to the mnt_by attribute.
149 Accepts an optional mnt_by value to be added to the mnt_by array,
150 always return the current mnt_by array.
151  
152 =head2 B<changed( [$changed] )>
153  
154 Accessor to the changed attribute.
155 Accepts an optional changed value to be added to the changed array,
156 always return the current changed array.
157  
158 =head2 B<source( [$source] )>
159  
160 Accessor to the source attribute.
161 Accepts an optional source, always return the current source.
162  
163 =cut
164  
165 1;