| 1 | package Net::Whois::Object::Limerick::AFRINIC; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use base qw/Net::Whois::Object/; | ||
| 6 | |||
| 7 | # whois -t limerick -h whois.afrinic.net | ||
| 8 | # % This is the AfriNIC Whois server. | ||
| 9 | # | ||
| 10 | # limerick: [mandatory] [single] [primary/look-up key] | ||
| 11 | # descr: [optional] [multiple] [ ] | ||
| 12 | # text: [mandatory] [multiple] [ ] | ||
| 13 | # org: [optional] [multiple] [inverse key] | ||
| 14 | # admin-c: [mandatory] [multiple] [inverse key] | ||
| 15 | # author: [mandatory] [multiple] [inverse key] | ||
| 16 | # remarks: [optional] [multiple] [ ] | ||
| 17 | # notify: [optional] [multiple] [inverse key] | ||
| 18 | # mnt-by: [mandatory] [multiple] [inverse key] | ||
| 19 | # changed: [mandatory] [multiple] [ ] | ||
| 20 | # source: [mandatory] [single] [ ] | ||
| 21 | |||
| 22 | __PACKAGE__->attributes( 'primary', ['limerick'] ); | ||
| 23 | __PACKAGE__->attributes( 'mandatory', [ 'limerick', 'text', 'admin_c', 'author', 'mnt_by', 'changed', 'source' ] ); | ||
| 24 | __PACKAGE__->attributes( 'optional', [ 'descr', 'org', 'remarks', 'notify' ] ); | ||
| 25 | __PACKAGE__->attributes( 'single', [ 'limerick', 'source' ] ); | ||
| 26 | __PACKAGE__->attributes( 'multiple', [ 'descr', 'text', 'org', 'admin_c', 'author', 'remarks', 'notify', 'mnt_by', 'changed' ] ); | ||
| 27 | |||
| 28 | =head1 NAME | ||
| 29 | |||
| 30 | Net::Whois::Object::Limerick::AFRINIC - an object representation of the RPSL Limerick block | ||
| 31 | |||
| 32 | =head1 DESCRIPTION | ||
| 33 | |||
| 34 | The limerick object represents a humorous poem that has five lines and | ||
| 35 | the rhyme scheme "aabba". | ||
| 36 | |||
| 37 | =head1 METHODS | ||
| 38 | |||
| 39 | =head2 B<new( %options )> | ||
| 40 | |||
| 41 | Constructor for the Net::Whois::Object::Limerick::AFRINIC class | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | sub new { | ||
| 46 | my ( $class, @options ) = @_; | ||
| 47 | |||
| 48 | my $self = bless {}, $class; | ||
| 49 | $self->_init(@options); | ||
| 50 | |||
| 51 | |||
| 52 | return $self; | ||
| 53 | |||
| 54 | } | ||
| 55 | |||
| 56 | =head2 B<limerick( [$limerick] )> | ||
| 57 | |||
| 58 | Accessor to the limerick attribute. | ||
| 59 | Accepts an optional value, always return the current limerick value. | ||
| 60 | |||
| 61 | =head2 B<descr( [$descr] )> | ||
| 62 | |||
| 63 | Accessor to the descr attribute. | ||
| 64 | Accepts an optional descr to be added to the descr array, | ||
| 65 | always return the current descr array. | ||
| 66 | |||
| 67 | =head2 B<text( [$text] )> | ||
| 68 | |||
| 69 | Accessor to the text attribute. | ||
| 70 | Accepts an optional text to be added to the text array, | ||
| 71 | always return the current text array. | ||
| 72 | |||
| 73 | =head2 B<admin_c( [$contact] )> | ||
| 74 | |||
| 75 | Accessor to the admin_c attribute. | ||
| 76 | Accepts an optional contact to be added to the admin_c array, | ||
| 77 | always return the current admin_c array. | ||
| 78 | |||
| 79 | =head2 B<author( [$author] )> | ||
| 80 | |||
| 81 | Accessor to the author attribute. | ||
| 82 | Accepts an optional author to be added to the author array, | ||
| 83 | always return the current author array. | ||
| 84 | |||
| 85 | =head2 B<remarks( [$remark] )> | ||
| 86 | |||
| 87 | Accessor to the remarks attribute. | ||
| 88 | Accepts an optional remark to be added to the remarks array, | ||
| 89 | always return the current remarks array. | ||
| 90 | |||
| 91 | =head2 B<notify( [$notify] )> | ||
| 92 | |||
| 93 | Accessor to the notify attribute. | ||
| 94 | Accepts an optional notify value to be added to the notify array, | ||
| 95 | always return the current notify array. | ||
| 96 | |||
| 97 | =head2 B<mnt_by( [$mnt_by] )> | ||
| 98 | |||
| 99 | Accessor to the mnt_by attribute. | ||
| 100 | Accepts an optional mnt_by value to be added to the mnt_by array, | ||
| 101 | always return the current mnt_by array. | ||
| 102 | |||
| 103 | =head2 B<changed( [$changed] )> | ||
| 104 | |||
| 105 | Accessor to the changed attribute. | ||
| 106 | Accepts an optional changed value to be added to the changed array, | ||
| 107 | always return the current changed array. | ||
| 108 | |||
| 109 | =head2 B<source( [$source] )> | ||
| 110 | |||
| 111 | Accessor to the source attribute. | ||
| 112 | Accepts an optional source, always return the current source. | ||
| 113 | |||
| 114 | =cut | ||
| 115 | |||
| 116 | 1; |