| 1 | package Net::Whois::Object::Person::AFRINIC; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use base qw/Net::Whois::Object/; | ||
| 6 | |||
| 7 | # whois -t person -h whois.afrinic.net | ||
| 8 | # % This is the AfriNIC Whois server. | ||
| 9 | # | ||
| 10 | # person: [mandatory] [single] [lookup key] | ||
| 11 | # address: [mandatory] [multiple] [ ] | ||
| 12 | # phone: [mandatory] [multiple] [ ] | ||
| 13 | # fax-no: [optional] [multiple] [ ] | ||
| 14 | # e-mail: [mandatory] [multiple] [lookup key] | ||
| 15 | # org: [optional] [multiple] [inverse key] | ||
| 16 | # nic-hdl: [mandatory] [single] [primary/look-up key] | ||
| 17 | # remarks: [optional] [multiple] [ ] | ||
| 18 | # notify: [optional] [multiple] [inverse key] | ||
| 19 | # abuse-mailbox: [optional] [multiple] [inverse key] | ||
| 20 | # mnt-by: [optional] [multiple] [inverse key] | ||
| 21 | # changed: [mandatory] [multiple] [ ] | ||
| 22 | # source: [mandatory] [single] [ ] | ||
| 23 | |||
| 24 | __PACKAGE__->attributes( 'primary', ['nic_hdl'] ); | ||
| 25 | __PACKAGE__->attributes( 'mandatory', [ 'person', 'address', 'phone', 'email', 'nic_hdl', 'changed', 'source' ] ); | ||
| 26 | __PACKAGE__->attributes( 'optional', [ 'fax_no', 'org', 'remarks', 'notify', 'abuse_mailbox', 'mnt_by' ] ); | ||
| 27 | __PACKAGE__->attributes( 'single', [ 'person', 'nic_hdl', 'source' ] ); | ||
| 28 | __PACKAGE__->attributes( 'multiple', [ 'address', 'phone', 'fax_no', 'e_mail', 'org', 'remarks', 'notify', 'abuse_mailbox', 'mnt_by', 'changed' ] ); | ||
| 29 | |||
| 30 | |||
| 31 | =head1 NAME | ||
| 32 | |||
| 33 | Net::Whois::Object::Person::AFRINIC - an object representation of the RPSL Person block | ||
| 34 | |||
| 35 | =head1 DESCRIPTION | ||
| 36 | |||
| 37 | A person object contains information about technical or administrative | ||
| 38 | contact responsible for the object where it is referenced. Once the | ||
| 39 | object is created, the value of the "person:" attribute cannot be | ||
| 40 | changed. | ||
| 41 | |||
| 42 | =head1 METHODS | ||
| 43 | |||
| 44 | =head2 B<new( %options )> | ||
| 45 | |||
| 46 | Constructor for the Net::Whois::Object::Person::AFRINIC class | ||
| 47 | |||
| 48 | =cut | ||
| 49 | |||
| 50 | sub new { | ||
| 51 | my ( $class, @options ) = @_; | ||
| 52 | |||
| 53 | my $self = bless {}, $class; | ||
| 54 | $self->_init(@options); | ||
| 55 | |||
| 56 | return $self; | ||
| 57 | } | ||
| 58 | |||
| 59 | =head2 B<person( [$person] )> | ||
| 60 | |||
| 61 | Accessor to the person attribute. | ||
| 62 | Accepts an optional person, always return the current person. | ||
| 63 | |||
| 64 | =head2 B<address( [$address] )> | ||
| 65 | |||
| 66 | Accessor to the address attribute. | ||
| 67 | Accepts an optional address line to be added to the address array, | ||
| 68 | always return the current address array. | ||
| 69 | |||
| 70 | =head2 B<phone( [$phone] )> | ||
| 71 | |||
| 72 | Accessor to the phone attribute. | ||
| 73 | Accepts an optional phone number to be added to the phone array, | ||
| 74 | always return the current phone array. | ||
| 75 | |||
| 76 | =head2 B<fax_no( [$fax_no] )> | ||
| 77 | |||
| 78 | Accessor to the fax_no attribute. | ||
| 79 | Accepts an optional fax_no to be added to the fax_no array, | ||
| 80 | always return the current fax_no array. | ||
| 81 | |||
| 82 | =head2 B<e_mail( [$e_mail] )> | ||
| 83 | |||
| 84 | Accessor to the e_mail attribute. | ||
| 85 | Accepts an optional e_mail to be added to the e_mail array, | ||
| 86 | always return the current e_mail array. | ||
| 87 | |||
| 88 | =head2 B<org( [$org] )> | ||
| 89 | |||
| 90 | Accessor to the org attribute. | ||
| 91 | Accepts an optional org, always return the current org array. | ||
| 92 | |||
| 93 | Points to an existing organisation object representing the entity that | ||
| 94 | holds the resource. | ||
| 95 | |||
| 96 | The 'ORG-' string followed by 2 to 4 characters, followed by up to 5 digits | ||
| 97 | followed by a source specification. The first digit must not be "0". | ||
| 98 | Source specification starts with "-" followed by source name up to | ||
| 99 | 9-character length. | ||
| 100 | |||
| 101 | =head2 B<nic_hdl( [$nic_hdl] )> | ||
| 102 | |||
| 103 | Accessor to the nic_hdl attribute. | ||
| 104 | Accepts an optional nic_hdl, always return the current nic_hdl. | ||
| 105 | |||
| 106 | =head2 B<remarks( [$remark] )> | ||
| 107 | |||
| 108 | Accessor to the remarks attribute. | ||
| 109 | Accepts an optional remark to be added to the remarks array, | ||
| 110 | always return the current remarks array. | ||
| 111 | |||
| 112 | =head2 B<notify( [$notify] )> | ||
| 113 | |||
| 114 | Accessor to the notify attribute. | ||
| 115 | Accepts an optional notify value to be added to the notify array, | ||
| 116 | always return the current notify array. | ||
| 117 | |||
| 118 | =head2 B<abuse_mailbox( [$abuse_mailbox] )> | ||
| 119 | |||
| 120 | Accessor to the abuse_mailbox attribute. | ||
| 121 | Accepts an optional abuse_mailbox value to be added to the abuse_mailbox array, | ||
| 122 | always return the current abuse_mailbox array. | ||
| 123 | |||
| 124 | =head2 B<mnt_by( [$mnt_by] )> | ||
| 125 | |||
| 126 | Accessor to the mnt_by attribute. | ||
| 127 | Accepts an optional mnt_by value to be added to the mnt_by array, | ||
| 128 | always return the current mnt_by array. | ||
| 129 | |||
| 130 | =head2 B<changed( [$changed] )> | ||
| 131 | |||
| 132 | Accessor to the changed attribute. | ||
| 133 | Accepts an optional changed value to be added to the changed array, | ||
| 134 | always return the current changed array. | ||
| 135 | |||
| 136 | =head2 B<source( [$source] )> | ||
| 137 | |||
| 138 | Accessor to the source attribute. | ||
| 139 | Accepts an optional source, always return the current source. | ||
| 140 | |||
| 141 | =cut | ||
| 142 | |||
| 143 | 1; |