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