Object/Role.pm

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